ViewAnimator

public class ViewAnimator

The ViewAnimator class contains the supported UIView animatable properties, like frame, center, cornerRadius, and more.

In an Wave animation block, change these values to create an animation, like so:

Example usage:

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

Public

  • The bounds of the attached UIView.

    Declaration

    Swift

    public var bounds: CGRect { get set }
  • The frame of the attached UIView.

    Declaration

    Swift

    public var frame: CGRect { get set }
  • The origin of the attached UIView.

    Declaration

    Swift

    public var origin: CGPoint { get set }
  • The center of the attached UIView.

    Declaration

    Swift

    public var center: CGPoint { get set }
  • The background color of the attached UIView.

    Declaration

    Swift

    public var backgroundColor: UIColor? { get set }
  • The alpha of the attached UIView.

    Declaration

    Swift

    public var alpha: CGFloat { get set }
  • The scale transform of the attached UIView‘s layer.

    Declaration

    Swift

    public var scale: CGPoint { get set }
  • The translation transform of the attached UIView‘s layer.

    Declaration

    Swift

    public var translation: CGPoint { get set }
  • The corner radius of the attached UIView‘s layer.

    Declaration

    Swift

    public var cornerRadius: CGFloat { get set }