removeChildBehavior(_:)
Removes a child dynamic behavior from a custom dynamic behavior.
Declaration
func removeChildBehavior(_ behavior: UIDynamicBehavior)Parameters
- behavior:
The child dynamic behavior you want to remove.
The parent behavior ignores your use of this method if you:
Provide a
nilvalueProvide a behavior instance that is not a child of the parent behavior
Discussion
This method applies only to custom subclasses of the UIDynamicBehavior class. UIKit concrete dynamic behaviors (such as an instance of UICollisionBehavior) cannot have child behaviors.