---
title: "removeChildBehavior(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidynamicbehavior/removechildbehavior(_:)"
---

# removeChildBehavior(_:)

Removes a child dynamic behavior from a custom dynamic behavior.

## Declaration

```swift
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 nil value Provide a behavior instance that is not a child of the parent behavior

## Discussion

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.

## See Also

### Configuring a dynamic behavior

- [action](uikit/uidynamicbehavior/action.md)
- [addChildBehavior(_:)](uikit/uidynamicbehavior/addchildbehavior(_:).md)
- [childBehaviors](uikit/uidynamicbehavior/childbehaviors.md)
