---
title: PortalComponent.BoundaryStyle
framework: realitykit
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: realitykit/portalcomponent/boundarystyle
---

# PortalComponent.BoundaryStyle

The shape of a portal’s clipping and crossing boundary.

## Declaration

```swift
struct BoundaryStyle
```

## Overview

Overview A portal has two related but separate concepts: The surface, a flat plane mesh that RealityKit renders with PortalMaterial and sizes from PortalComponent.SurfaceStyle. The boundary, the volume in space that clips portal world content and that crossing entities pass through. PortalComponent.BoundaryStyle describes the shape of that volume. Pair a boundary style with a PortalComponent.BoundaryMode to control whether the boundary clips content, allows entities to cross, both, or neither.

## Topics

### Type Methods

- [enclosingBox(depth:)](realitykit/portalcomponent/boundarystyle/enclosingbox(depth:).md)
- [infinitePlane()](realitykit/portalcomponent/boundarystyle/infiniteplane().md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
