---
title: "removeBehavior(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidynamicanimator/removebehavior(_:)"
---

# removeBehavior(_:)

Removes a specified dynamic behavior from a dynamic animator.

## Declaration

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

## See Also

### Initializing and managing a dynamic animator

- [init(referenceView:)](uikit/uidynamicanimator/init(referenceview:).md)
- [init(collectionViewLayout:)](uikit/uidynamicanimator/init(collectionviewlayout:).md)
- [items(in:)](uikit/uidynamicanimator/items(in:).md)
- [addBehavior(_:)](uikit/uidynamicanimator/addbehavior(_:).md)
- [removeAllBehaviors()](uikit/uidynamicanimator/removeallbehaviors().md)
