---
title: castsShadow
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnlight/castsshadow
---

# castsShadow

A Boolean value that determines whether the light casts shadows.

## Declaration

```swift
var castsShadow: Bool { get set }
```

## Discussion

Discussion Geometries illuminated by the light cast shadows only if the value of this property is true and the type property of the light is spot or directional. The default value is false.

## See Also

### Managing Shadows Cast by the Light

- [shadowRadius](scenekit/scnlight/shadowradius.md)
- [shadowColor](scenekit/scnlight/shadowcolor.md)
- [shadowMapSize](scenekit/scnlight/shadowmapsize.md)
- [shadowSampleCount](scenekit/scnlight/shadowsamplecount.md)
- [shadowMode](scenekit/scnlight/shadowmode.md)
- [SCNShadowMode](scenekit/scnshadowmode.md)
- [shadowBias](scenekit/scnlight/shadowbias.md)
- [orthographicScale](scenekit/scnlight/orthographicscale.md)
- [zFar](scenekit/scnlight/zfar.md)
- [zNear](scenekit/scnlight/znear.md)
