CALayer
public extension CALayer
-
Use the
animatorproperty to set any animatable properties on aCALayerin anWave.animateWith(...)animation block.Example usage:
Wave.animateWith(spring: spring) { myView.layer.animator.shadowColor = UIColor.black.cgColor myView.layer.animator.shadowOpacity = 0.3 }See
LayerAnimatorfor a list of supported animatable properties onUIView.Declaration
Swift
var animator: LayerAnimator { get set }
CALayer Extension Reference