View

public protocol View

Used to keep track of the UIView object and a changing reference point. Since Spruce allows for recursive subview lookup, we need to handle changing the coordinate space. Once the coordinate space has been accounted for we can then alter the reference point.

  • The view that should be animating

    Declaration

    Swift

    weak var view: UIView?
  • The adjusted for reference point.

    Declaration

    Swift

    var referencePoint: CGPoint