init(referenceView:)
Initializes a dynamic animator with a specified view as its reference view.
Declaration
init(referenceView view: UIView)Parameters
- view:
The view for the dynamic animator, called the reference view.
Return Value
The initialized dynamic animator, or nil if there was a problem initializing the object.
Discussion
When you initialize a dynamic animator with this method, the behaviors (and their dynamic items) that you add to the animator employ the reference view’s coordinate system.