---
title: invertsAlpha
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/graphicscontext/shadowoptions/invertsalpha
---

# invertsAlpha

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

## Declaration

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

## Discussion

Discussion You can create an “inner shadow” effect by combining this option with shadowAbove and using the sourceAtop blend mode.

## See Also

### Getting shadow options

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