---
title: "PortalComponent.CrossingMode.volume(_:)"
framework: realitykit
role: symbol
role_heading: Case
path: "realitykit/portalcomponent/crossingmode-swift.enum/volume(_:)"
---

# PortalComponent.CrossingMode.volume(_:)

Allows contents within the portal to cross using a volumetric box.

## Declaration

```swift
case volume(PortalComponent.Volume)
```

## Parameters

- `volume`: A doc://com.apple.RealityKit/documentation/RealityKit/PortalComponent/Volume describing the box position and extents

## Discussion

Discussion Entities with PortalCrossingComponent will cross the box boundary. Parts of entities inside the volume render as portal content, parts outside render normally.
