UIView

public extension UIView
  • Use the animator property to set any animatable properties on a UIView in an Wave.animateWith(...) animation block.

    Example usage:

    Wave.animateWith(spring: spring) {
       myView.animator.center = CGPoint(x: 100, y: 100)
       myView.animator.alpha = 0.5
    }
    

    See ViewAnimator for a list of supported animatable properties on UIView.

    Declaration

    Swift

    var animator: ViewAnimator { get set }