Instance Method

willMove(to:)

Called when the dynamic behavior is added to, or removed from, a dynamic animator.

Declaration

func willMove(to dynamicAnimator: UIDynamicAnimator?)

Parameters

dynamicAnimator

The dynamic animator that the behavior is being added to, or nil if being removed from an animator.

Discussion

Use this method as the override point for responding to changes in the UIKit Dynamics behavior tree that involve the dynamic behavior.

See Also

Responding to Changes in the Behavior Tree

var dynamicAnimator: UIDynamicAnimator?

The dynamic animator that the dynamic behavior is associated with.