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

# GraphicsContext.FilterOptions

Options that configure a filter that you add to a graphics context.

```
@frozen struct FilterOptions
```

## Overview

You can use filter options to configure a [`GraphicsContext.Filter`](/documentation/SwiftUI/GraphicsContext/Filter) that you apply
to a [`GraphicsContext`](/documentation/SwiftUI/GraphicsContext) with the [`addFilter(_:options:)`](/documentation/SwiftUI/GraphicsContext/addFilter(_:options:)) method.

## Topics

### Getting filter options

[`static var linearColor: GraphicsContext.FilterOptions`](/documentation/SwiftUI/GraphicsContext/FilterOptions/linearColor)

An option that causes the filter to perform calculations in a
linear color space.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

[`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)