<!--
{
  "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/UICollisionBehavior/Mode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UICollisionBehaviorMode"
  },
  "title" : "UICollisionBehavior.Mode"
}
-->

# UICollisionBehavior.Mode

The types of edges that participate in collisions for a collision behavior.

```
struct Mode
```

## Topics

### Constants

[`items`](/documentation/UIKit/UICollisionBehavior/Mode/items)

Specifies that the dynamic items, associated with the collision behavior, collide only with each other and not with specified collision boundaries.

[`boundaries`](/documentation/UIKit/UICollisionBehavior/Mode/boundaries)

Specifies that the dynamic items, associated with the collision behavior, collide only with specified collision boundaries and don’t collide with each other.

[`everything`](/documentation/UIKit/UICollisionBehavior/Mode/everything)

Specifies that the dynamic items, associated with the collision behavior, collide with each other *and* with specified collision boundaries.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UICollisionBehavior/Mode/init(rawValue:))

Creates a collision behavior mode structure with the specified raw value.



---

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)