---
title: PortalComponent.Volume
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/portalcomponent/volume
---

# PortalComponent.Volume

Defines the geometry of a volumetric (box) portal boundary.

## Declaration

```swift
struct Volume
```

## Overview

Overview Use this type with PortalComponent.ClippingMode.volume(_:) and PortalComponent.CrossingMode.volume(_:) to define a box-bounded portal space. All geometry is specified in portal-local space.

## Topics

### Creating a volume

- [init(position:extents:)](realitykit/portalcomponent/volume/init(position:extents:).md)

### Configuring the extents

- [extents](realitykit/portalcomponent/volume/extents.md)

### Instance Properties

- [position](realitykit/portalcomponent/volume/position.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
