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