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
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 andinitialVelocity
defaults 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
delay
the time interval that this animation should wait to start from the moment this method is called
view
the view to animate
completion
a closure that is called upon the animation completing. A
Bool
is passed into the closure letting you know if the animation has completed.