---
title: GraphicsContext.ShadowOptions
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/graphicscontext/shadowoptions
---

# GraphicsContext.ShadowOptions

Options that configure the graphics context filter that creates shadows.

## Declaration

```swift
@frozen struct ShadowOptions
```

## Overview

Overview You can use a set of these options when you call shadow(color:radius:x:y:blendMode:options:) to create a GraphicsContext.Filter that adds a drop shadow to an object that you draw into a GraphicsContext.

## Topics

### Getting shadow options

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

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Filtering

- [addFilter(_:options:)](swiftui/graphicscontext/addfilter(_:options:).md)
- [GraphicsContext.Filter](swiftui/graphicscontext/filter.md)
- [GraphicsContext.FilterOptions](swiftui/graphicscontext/filteroptions.md)
- [GraphicsContext.BlurOptions](swiftui/graphicscontext/bluroptions.md)
