<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PortalComponent/BoundaryMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15PortalComponentV12BoundaryModeO"
  },
  "title" : "PortalComponent.BoundaryMode"
}
-->

# PortalComponent.BoundaryMode

A combination of clipping and crossing behaviors to apply to a portal boundary.

```
enum BoundaryMode
```

## Overview

Pass this value to the factory entry points to configure
[`clippingMode`](/documentation/RealityKit/PortalComponent/clippingMode-swift.property) and
[`crossingMode`](/documentation/RealityKit/PortalComponent/crossingMode-swift.property) together.

## Topics

### Enumeration Cases

[`case clippingAndCrossing`](/documentation/RealityKit/PortalComponent/BoundaryMode/clippingAndCrossing)

The portal clips its content to the boundary, and entities with
[`PortalCrossingComponent`](/documentation/RealityKit/PortalCrossingComponent) cross the boundary.

[`case clippingOnly`](/documentation/RealityKit/PortalComponent/BoundaryMode/clippingOnly)

The portal clips its content to the boundary.

[`case crossingOnly`](/documentation/RealityKit/PortalComponent/BoundaryMode/crossingOnly)

Entities with [`PortalCrossingComponent`](/documentation/RealityKit/PortalCrossingComponent) cross the boundary.

[`case none`](/documentation/RealityKit/PortalComponent/BoundaryMode/none)

The portal renders without clipping or crossing.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)