<!--
{
  "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/ClipOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15GraphicsContextV11ClipOptionsV"
  },
  "title" : "GraphicsContext.ClipOptions"
}
-->

# GraphicsContext.ClipOptions

Options that affect the use of clip shapes.

```
@frozen struct ClipOptions
```

## Overview

Use these options to affect how SwiftUI interprets a clip shape
when you call [`clip(to:style:options:)`](/documentation/SwiftUI/GraphicsContext/clip(to:style:options:)) to add a path to the array of
clip shapes, or when you call [`clipToLayer(opacity:options:content:)`](/documentation/SwiftUI/GraphicsContext/clipToLayer(opacity:options:content:))
to add a clipping layer.

## Topics

### Getting clip options

[`static var inverse: GraphicsContext.ClipOptions`](/documentation/SwiftUI/GraphicsContext/ClipOptions/inverse)

An option to invert the shape or layer alpha as the clip mask.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)