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

# collisionBehavior(_:endedContactFor:withBoundaryIdentifier:)

Called when a collision between a dynamic item and a boundary has ended.

```
optional func collisionBehavior(_ behavior: UICollisionBehavior, endedContactFor item: any UIDynamicItem, withBoundaryIdentifier identifier: (any NSCopying)?)
```

## Parameters

`behavior`

The collision behavior that owns the dynamic item that has ended contact.

`item`

The dynamic item that collided.

`identifier`

The identifier of the boundary that the dynamic item collided with.

---

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)