---
title: shadow
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/hasspotlight/shadow
---

# shadow

The shadow for the spotlight.

## Declaration

```swift
@MainActor @preconcurrency var shadow: SpotLightComponent.Shadow? { get set }
```

## Discussion

Discussion Set this property to nil to remove shadows for the light. Set it to an instance of SpotLightComponent.Shadow to create shadows.
