Classes

The following classes are available globally.

  • Declaration

    Swift

    public class Animation<T> : AnimationProviding where T : SpringInterpolatable
    extension Animation: CustomStringConvertible
  • 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
  • The ViewAnimator class contains the supported UIView animatable properties, like frame, center, cornerRadius, and more.

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

    Example usage:

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

    Declaration

    Swift

    public class ViewAnimator
  • Declaration

    Swift

    public class Wave