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.
- 
                  
                  
Have your view slide to where it currently is. Provide a
SlideDirectionandSizeto determine what the animation should look like.Declaration
Swift
case slide(SlideDirection, Distance) 
- 
                  
                  
Fade the view in
Declaration
Swift
case fadeIn 
- 
                  
                  
Spin the view in the direction of the size. Provide a
Sizeto define how much the view should spinDeclaration
Swift
case spin(Angle) 
- 
                  
                  
Have the view grow in size. Provide a
Sizeto define by which scale the view should growDeclaration
Swift
case expand(Scale) 
- 
                  
                  
Have the view shrink in size. Provide a
Sizeto define by which scale the view should shrinkDeclaration
Swift
case contract(Scale) 
- 
                  
                  
Provide custom prepare and change functions for the view to animate
Declaration
Swift
case custom(prepareFunction: PrepareHandler, animateFunction: ChangeFunction) 
View on GitHub
        StockAnimation Enum Reference