SpringAnimation
public struct SpringAnimation: Animation
A wrapper around the spring UIViewAnimation block with options publicly accessible. See, UIViewAnimation for more
- Note: animationOptions defaults to []. If you do not update this value before calling the animate method than the changes will not be reflected.
- Note: damping defaults to 0.5 and initialVelocity defaults to 0.7
-
A wrapper around the spring
UIViewAnimationblock with options publicly accessible. See, UIViewAnimation for more - Note:animationOptionsdefaults to[]. If you do not update this value before calling the animate method than the changes will not be reflected. - Note:dampingdefaults to 0.5 andinitialVelocitydefaults to 0.7Declaration
Swift
public var changeFunction: ChangeFunction? -
Undocumented
Declaration
Swift
public struct SpringAnimation: Animation -
A mask of options indicating how you want to perform the animations
Declaration
Swift
public var animationOptions: UIViewAnimationOptions = [] -
Undocumented
Declaration
Swift
public struct SpringAnimation: Animation -
Undocumented
Declaration
Swift
public struct SpringAnimation: Animation -
Undocumented
Declaration
Swift
public struct SpringAnimation: Animation -
Undocumented
Declaration
Swift
public struct SpringAnimation: Animation -
A mask of options indicating how you want to perform the animations
Declaration
Swift
public func animate(delay: TimeInterval, view: UIView, completion: CompletionHandler?)Parameters
delaythe time interval that this animation should wait to start from the moment this method is called
viewthe view to animate
completiona closure that is called upon the animation completing. A
Boolis passed into the closure letting you know if the animation has completed.
View on GitHub
SpringAnimation Struct Reference