ViewController
Undocumented
-
an array of spruce stock animations that will be used to animate all of the subviews of the
animationViewDeclaration
Swift
open var animations: [StockAnimation] = [] -
the length of each of the individual subview animations
Declaration
Swift
open var duration: TimeInterval = 0.3 -
the style of animation that will be apllied to each of the subviews
Declaration
Swift
open var animationType: Animation -
the sort function that should be used for choreographing the animations
Declaration
Swift
open var sortFunction: SortFunction -
the view that Spruce should be called on. This means that the subviews of this view will animate in.
Declaration
Swift
open var animationView: UIView? -
Undocumented
-
in the
viewDidLoadmethod all of the views are prepared for animationDeclaration
Swift
override open func viewDidLoad() -
a simple overrided method that will call
spruce_upon theanimationView. If theanimationViewis not set then nothing will happen. The code should silently fail.Declaration
Swift
override open func viewDidAppear(_ animated: Bool)Parameters
animatedIf true, the view was added to the window using an animation.
View on GitHub
ViewController Class Reference