Animation
public protocol Animation
An animation type that handles how the views will change. Most of these are simply wrappers around the standard UIViewAnimation methods. This gives Spruce the flexibility to work with any style of animating.
-
Animate the given view using the
changeFunction.Declaration
Swift
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. -
Given a view, this closure will define the manipulations that will happen to that view
Declaration
Swift
var changeFunction: ChangeFunction?
View on GitHub
Animation Protocol Reference