ScaleAndAlphaExpansion
public struct ScaleAndAlphaExpansion: SwipeExpanding
A scale and alpha expansion object drives the custom appearance of the effected actions during expansion.
-
Returns a
ScaleAndAlphaExpansioninstance 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
ScaleAndAlphaExpansioninstance.Declaration
Swift
public init(duration: Double = 0.15, scale: CGFloat = 0.8, interButtonDelay: Double = 0.1)Parameters
durationThe duration of the animation.
scaleThe scale factor used during animation.
interButtonDelayThe inter-button delay between animations.
Return Value
The new
ScaleAndAlphaExpansioninstance.
View on GitHub
ScaleAndAlphaExpansion Structure Reference