---
title: maximumDistance
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/directionallightcomponent/shadow/maximumdistance
---

# maximumDistance

The maximum distance for the shadow.

## Declaration

```swift
var maximumDistance: Float { get set }
```

## See Also

### Configuring the shadow

- [depthBias](realitykit/directionallightcomponent/shadow/depthbias.md)
- [cullModeOverride](realitykit/directionallightcomponent/shadow/cullmodeoverride.md)
- [shadowProjection](realitykit/directionallightcomponent/shadow/shadowprojection.md)
