addBehavior(_:)
Adds a dynamic behavior to a dynamic animator.
Declaration
func addBehavior(_ behavior: UIDynamicBehavior)Parameters
- behavior:
The dynamic behavior instance you are adding.
The dynamic animator ignores your use of this method if you:
Provide a
nilvalueProvide a behavior instance that you’ve already added to the animator at the same level in the behavior hierarchy