AnyTransition

public struct AnyTransition

A type that represents a transition used by a view when being added or removed from a hierarchy.

Public methods

  • Transitions from a specified offset

    Declaration

    Swift

    public static func offset(_ offset: CGSize) -> AnyTransition
  • Transitions from a specified offset

    Declaration

    Swift

    public static func offset(x: CGFloat = 0, y: CGFloat = 0) -> AnyTransition
  • Transitions by scaling from 0.01

    Declaration

    Swift

    public static var scale: AnyTransition { get }
  • Transitions by scaling from the specified offset

    Declaration

    Swift

    public static func scale(scale: CGFloat) -> AnyTransition
  • A transition from transparent to opaque on insertion and opaque to transparent on removal.

    Declaration

    Swift

    public static let opacity: AnyTransition
  • A composite Transition that gives the result of two transitions both applied.

    Declaration

    Swift

    public func combined(with other: AnyTransition) -> AnyTransition
  • Attach an animation to this transition.

    Declaration

    Swift

    public func animation(_ animation: Animation?) -> AnyTransition
  • A composite Transition that uses a different transition for insertion versus removal.

    Declaration

    Swift

    public static func asymmetric(insertion: AnyTransition, removal: AnyTransition) -> AnyTransition
  • A transition that has no change in state.

    Declaration

    Swift

    public static var identity: AnyTransition { get }