ViewController

Undocumented

  • an array of spruce stock animations that will be used to animate all of the subviews of the animationView

    Declaration

    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 viewDidLoad method all of the views are prepared for animation

    Declaration

    Swift

    override open func viewDidLoad()
  • a simple overrided method that will call spruce_up on the animationView. If the animationView is not set then nothing will happen. The code should silently fail.

    Declaration

    Swift

    override open func viewDidAppear(_ animated: Bool)

    Parameters

    animated

    If true, the view was added to the window using an animation.