---
title: allowCrossing
framework: realitykit
role: symbol
role_heading: Type Property
path: realitykit/portalcomponent/options/allowcrossing
---

# allowCrossing

An option that enables the crossing feature.

## Declaration

```swift
static let allowCrossing: PortalComponent.Options
```

## Discussion

Discussion Objects within the portal world with a PortalCrossingComponent can cross the portal when the allowCrossing option is in an enabled state. Crossing behavior is based on the user-defined geometry for crossingMode.
