VisibilityTransition

public struct VisibilityTransition

The transition used when a view is inserted or removed during an update cycle.

  • The alpha of the view in the hidden state (initial for appearing, final for disappearing).

    Declaration

    Swift

    public var alpha: CGFloat
  • The transform of the view in the hidden state (initial for appearing, final for disappearing).

    Declaration

    Swift

    public var transform: CATransform3D
  • The animation attributes that will be used to drive the transition.

    Declaration

    Swift

    public var attributes: AnimationAttributes
  • Declaration

    Swift

    public init(alpha: CGFloat, transform: CATransform3D, attributes: AnimationAttributes = AnimationAttributes())
  • Returns a VisibilityTransition that scales in and out.

    Declaration

    Swift

    public static var scale: VisibilityTransition { get }
  • Returns a VisibilityTransition that fades in and out.

    Declaration

    Swift

    public static var fade: VisibilityTransition { get }
  • Returns a VisibilityTransition that simultaneously scales and fades in and out.

    Declaration

    Swift

    public static var scaleAndFade: VisibilityTransition { get }