StockAnimation

public enum StockAnimation

A few stock animations that you can use with Spruce. We want to make it really easy for you to include animations so we tried to include the basics. Use these stock animations to slide, fade, spin, expand, or contract your views.

  • Fade the view in

    Declaration

    Swift

    case fadeIn
  • Spin the view in the direction of the size. Provide a Size to define how much the view should spin

    Declaration

    Swift

    case spin(Angle)
  • Have the view grow in size. Provide a Size to define by which scale the view should grow

    Declaration

    Swift

    case expand(Scale)
  • Have the view shrink in size. Provide a Size to define by which scale the view should shrink

    Declaration

    Swift

    case contract(Scale)
  • Provide custom prepare and change functions for the view to animate

    Declaration

    Swift

    case custom(prepareFunction: PrepareHandler, animateFunction: ChangeFunction)