addChildBehavior(_:)
Adds a dynamic behavior, as a child, to a custom dynamic behavior.
Declaration
func addChildBehavior(_ behavior: UIDynamicBehavior)Parameters
- behavior:
The dynamic behavior you want to add as a child.
The parent behavior ignores your use of this method if you:
Provide a
nilvalueProvide a behavior instance that you’ve already added to the behavior
Discussion
Call this method only on custom subclasses of the UIDynamicBehavior class.