<!--
{
  "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/UIDynamicAnimator/removeBehavior(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDynamicAnimator(im)removeBehavior:"
  },
  "title" : "removeBehavior(_:)"
}
-->

# removeBehavior(_:)

Removes a specified dynamic behavior from a dynamic animator.

```
func removeBehavior(_ behavior: UIDynamicBehavior)
```

## Parameters

`behavior`

The dynamic behavior instance that you want to remove from the animator.

    The dynamic animator ignores your use of this method if you:

- Provide a `nil` value
- Provide a dynamic behavior instance that is not part of the animator’s behavior hierarchy

## Discussion

---

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)