ViewAnimator

public class ViewAnimator

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

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

Example usage:

Wave.animateWith(spring: .defaultAnimated) {
   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 corner radius of the attached UIView‘s layer. This is a convenience API that forwards to the CALayer’s animator.

    Declaration

    Swift

    public var cornerRadius: CGFloat { get set }
  • The border color of the attached UIView‘s layer. This is a convenience API that forwards to the CALayer’s animator.

    Declaration

    Swift

    public var borderColor: UIColor { get set }
  • The border width of the attached UIView‘s layer. This is a convenience API that forwards to the CALayer’s animator.

    Declaration

    Swift

    public var borderWidth: CGFloat { get set }
  • The shadow color of the attached UIView‘s layer'. This is a convenience API that forwards to the CALayer’s animator.

    Declaration

    Swift

    public var shadowColor: UIColor { get set }
  • The shadow opacity of the attached UIView‘s layer'. This is a convenience API that forwards to the CALayer’s animator.

    Declaration

    Swift

    public var shadowOpacity: CGFloat { get set }
  • The shadow offset of the attached UIView‘s layer'. This is a convenience API that forwards to the CALayer’s animator.

    Declaration

    Swift

    public var shadowOffset: CGSize { get set }
  • The shadow radius of the attached UIView‘s layer'. This is a convenience API that forwards to the CALayer’s animator.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var translation: CGPoint { get set }