---
title: "collisionBehavior(_:endedContactFor:with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollisionbehaviordelegate/collisionbehavior(_:endedcontactfor:with:)"
---

# collisionBehavior(_:endedContactFor:with:)

Called when a collision between two dynamic items has ended.

## Declaration

```swift
optional func collisionBehavior(_ behavior: UICollisionBehavior, endedContactFor item1: any UIDynamicItem, with item2: any UIDynamicItem)
```

## Parameters

- `behavior`: The collision behavior that owns the dynamic items that collided.
- `item1`: The first of the two dynamic items participating in the collision.
- `item2`: The second of the two dynamic items participating in the collision.

## See Also

### Responding to UIKit Dynamics collisions

- [collisionBehavior(_:beganContactFor:withBoundaryIdentifier:at:)](uikit/uicollisionbehaviordelegate/collisionbehavior(_:begancontactfor:withboundaryidentifier:at:).md)
- [collisionBehavior(_:beganContactFor:with:at:)](uikit/uicollisionbehaviordelegate/collisionbehavior(_:begancontactfor:with:at:).md)
- [collisionBehavior(_:endedContactFor:withBoundaryIdentifier:)](uikit/uicollisionbehaviordelegate/collisionbehavior(_:endedcontactfor:withboundaryidentifier:).md)
