---
title: "init(castsShadow:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/groundingshadowcomponent/init(castsshadow:)"
---

# init(castsShadow:)

Creates a grounding shadow component.

## Declaration

```swift
init(castsShadow: Bool)
```

## Parameters

- `castsShadow`: A Boolean that indicates whether an entity with the component casts a shadow onto other model entities in the scene.

## Discussion

Discussion By default, the component makes an entity receive grounding shadows from other model entities in the scene.
