<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDynamicBehavior/removeChildBehavior(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDynamicBehavior(im)removeChildBehavior:"
  },
  "title" : "removeChildBehavior(_:)"
}
-->

# removeChildBehavior(_:)

Removes a child dynamic behavior from a custom dynamic behavior.

```
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

This method applies only to custom subclasses of the [`UIDynamicBehavior`](/documentation/UIKit/UIDynamicBehavior) class. UIKit concrete dynamic behaviors (such as an instance of [`UICollisionBehavior`](/documentation/UIKit/UICollisionBehavior)) cannot have child behaviors.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)