Classes

The following classes are available globally.

  • The LayerAnimator class contains the supported CALayer animatable properties, like cornerRadius, shadowColor, shadowOpacity, and more.

    In an Wave animation block, change these values to create an animation, like so:

    Example usage:

    Wave.animateWith(spring: .defaultAnimated) {
       myView.layer.animator.cornerRadius = 12
       myView.layer.animator.shadowOpacity = 0.5
    }
    
    See more

    Declaration

    Swift

    public class LayerAnimator
  • The ViewAnimator class contains the supported UIView animatable properties, like frame, center, backgroundColor, and more.

    In an Wave animation block, change these values to create an animation, like so:

    Example usage:

    Wave.animateWith(spring: .defaultAnimated) {
       myView.animator.center = CGPoint(x: 100, y: 100)
       myView.animator.alpha = 0.5
    }
    
    See more

    Declaration

    Swift

    public class ViewAnimator
  • Spring determines the timing curve and settling duration of an animation.

    Springs are created by providing a dampingRatio greater than zero, and either a response or stiffness value. See the initializers init(dampingRatio:response:mass:) and init(dampingRatio:stiffness:mass:) for usage information.

    See more

    Declaration

    Swift

    public class Spring : Equatable
    extension Spring: CustomStringConvertible
  • Declaration

    Swift

    public class SpringAnimator<T> : AnimatorProviding where T : SpringInterpolatable
    extension SpringAnimator: CustomStringConvertible
  • Declaration

    Swift

    public class Wave