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

# PortalComponent.ClippingMode.volume(_:)

Clips the contents within the portal 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 The volume is defined by a box with position and extents in portal-local space. This is useful for room portals and bounded portal spaces.
