Classes
The following classes are available globally.
-
The
LayerAnimator
class contains the supportedCALayer
animatable 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
ViewAnimator
class 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
-
Spring
determines the timing curve and settling duration of an animation.Springs are created by providing a
See moredampingRatio
greater than zero, and either aresponse
orstiffness
value. See the initializersinit(dampingRatio:response:mass:)
andinit(dampingRatio:stiffness:mass:)
for usage information.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