<!--
{
  "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/boundary(withIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICollisionBehavior(im)boundaryWithIdentifier:"
  },
  "title" : "boundary(withIdentifier:)"
}
-->

# boundary(withIdentifier:)

Returns a specified Bezier-path boundary.

```
func boundary(withIdentifier identifier: any NSCopying) -> UIBezierPath?
```

## Parameters

`identifier`

A boundary identifier that you’ve previously added to the collision behavior.

## Return Value

A Bezier-path boundary.

## Discussion

---

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)