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

# collisionBehavior(_:beganContactFor:withBoundaryIdentifier:at:)

Called when a collision, between a dynamic item and a collision boundary, has begun.

```
optional func collisionBehavior(_ behavior: UICollisionBehavior, beganContactFor item: any UIDynamicItem, withBoundaryIdentifier identifier: (any NSCopying)?, at p: CGPoint)
```

## Parameters

`behavior`

The collision behavior that owns the dynamic item that has started contact with a boundary.

`item`

The dynamic item that has started contact with a boundary.

`identifier`

The identifier of the boundary that the dynamic item has started contact with.

`p`

The collision point on the boundary.

---

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)