<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GraphicsContext/ShadowOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15GraphicsContextV13ShadowOptionsV"
  },
  "title" : "GraphicsContext.ShadowOptions"
}
-->

# GraphicsContext.ShadowOptions

Options that configure the graphics context filter that creates shadows.

```
@frozen struct ShadowOptions
```

## Overview

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

## Topics

### Getting shadow options

[`static var disablesGroup: GraphicsContext.ShadowOptions`](/documentation/SwiftUI/GraphicsContext/ShadowOptions/disablesGroup)

An option that causes the filter to composite the object and its
shadow separately in the current layer.

[`static var invertsAlpha: GraphicsContext.ShadowOptions`](/documentation/SwiftUI/GraphicsContext/ShadowOptions/invertsAlpha)

An option that causes the filter to invert the alpha of the shadow.

[`static var shadowAbove: GraphicsContext.ShadowOptions`](/documentation/SwiftUI/GraphicsContext/ShadowOptions/shadowAbove)

An option that causes the filter to draw the shadow above the
object, rather than below it.

[`static var shadowOnly: GraphicsContext.ShadowOptions`](/documentation/SwiftUI/GraphicsContext/ShadowOptions/shadowOnly)

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

## Relationships

### Conforms To

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Copyable`](/documentation/Swift/Copyable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)