CALayer

public extension CALayer
  • Use the animator property to set any animatable properties on a CALayer in an Wave.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 on UIView.

    Declaration

    Swift

    var animator: LayerAnimator { get set }