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

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

Called when a collision between two dynamic items has begun.

```
optional func collisionBehavior(_ behavior: UICollisionBehavior, beganContactFor item1: any UIDynamicItem, with item2: any UIDynamicItem, at p: CGPoint)
```

## Parameters

`behavior`

The collision behavior that owns the dynamic items that have started to contact each other.

`item1`

The first of the two dynamic items participating in the collision.

`item2`

The second of the two dynamic items participating in the collision.

`p`

The contact point for the collision. The coordinate system that pertains to a collision depends on how you initialized the associated animator. For details, read the Overview of [`UIDynamicAnimator`](/documentation/UIKit/UIDynamicAnimator).

---

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)