---
title: shadowOnly
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/graphicscontext/shadowoptions/shadowonly
---

# shadowOnly

An option that causes the filter to draw only the shadow, and omit the source object.

## Declaration

```swift
static var shadowOnly: GraphicsContext.ShadowOptions { get }
```

## See Also

### Getting shadow options

- [disablesGroup](swiftui/graphicscontext/shadowoptions/disablesgroup.md)
- [invertsAlpha](swiftui/graphicscontext/shadowoptions/invertsalpha.md)
- [shadowAbove](swiftui/graphicscontext/shadowoptions/shadowabove.md)
