<!--
{
  "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/UICollisionBehaviorDelegate/collisionBehavior(_:endedContactFor:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICollisionBehaviorDelegate(im)collisionBehavior:endedContactForItem:withItem:"
  },
  "title" : "collisionBehavior(_:endedContactFor:with:)"
}
-->

# collisionBehavior(_:endedContactFor:with:)

Called when a collision between two dynamic items has ended.

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

---

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)