ScaleAndAlphaExpansion

public struct ScaleAndAlphaExpansion: SwipeExpanding

A scale and alpha expansion object drives the custom appearance of the effected actions during expansion.

  • Returns a ScaleAndAlphaExpansion instance with default expansion options.

    Declaration

    Swift

    public static var `default`: ScaleAndAlphaExpansion
  • The duration of the animation.

    Declaration

    Swift

    public let duration: Double
  • The scale factor used during animation.

    Declaration

    Swift

    public let scale: CGFloat
  • The inter-button delay between animations.

    Declaration

    Swift

    public let interButtonDelay: Double
  • Contructs a new ScaleAndAlphaExpansion instance.

    Declaration

    Swift

    public init(duration: Double = 0.15, scale: CGFloat = 0.8, interButtonDelay: Double = 0.1)

    Parameters

    duration

    The duration of the animation.

    scale

    The scale factor used during animation.

    interButtonDelay

    The inter-button delay between animations.

    Return Value

    The new ScaleAndAlphaExpansion instance.