Classes
The following classes are available globally.
-
The
LayerAnimatorclass contains the supportedCALayeranimatable properties, likecornerRadius,shadowColor,shadowOpacity, and more.In an Wave animation block, change these values to create an animation, like so:
Example usage:
See moreWave.animateWith(spring: .defaultAnimated) { myView.layer.animator.cornerRadius = 12 myView.layer.animator.shadowOpacity = 0.5 }Declaration
Swift
public class LayerAnimator -
The
ViewAnimatorclass contains the supported UIView animatable properties, likeframe,center,backgroundColor, and more.In an Wave animation block, change these values to create an animation, like so:
Example usage:
See moreWave.animateWith(spring: .defaultAnimated) { myView.animator.center = CGPoint(x: 100, y: 100) myView.animator.alpha = 0.5 }Declaration
Swift
public class ViewAnimator -
Springdetermines the timing curve and settling duration of an animation.Springs are created by providing a
See moredampingRatiogreater than zero, and either aresponseorstiffnessvalue. See the initializersinit(dampingRatio:response:mass:)andinit(dampingRatio:stiffness:mass:)for usage information.Declaration
Swift
public class Spring : Equatableextension Spring: CustomStringConvertible -
Declaration
Swift
public class SpringAnimator<T> : AnimatorProviding where T : SpringInterpolatableextension SpringAnimator: CustomStringConvertible -
Declaration
Swift
public class Wave
Classes Reference