<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGradient/DrawingOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSGradientDrawingOptions"
  },
  "title" : "NSGradient.DrawingOptions"
}
-->

# NSGradient.DrawingOptions

Constants that specify gradient drawing options.

```
struct DrawingOptions
```

## Overview

These constants are used by the primitive drawing methods to determine if drawing occurs outside of the gradient start and end locations.

## Topics

### Constants

[`NSGradientDrawsBeforeStartingLocation`](/documentation/AppKit/NSGradient/DrawingOptions/drawsBeforeStartingLocation)

Drawing extends before the gradient starting point.

[`NSGradientDrawsAfterEndingLocation`](/documentation/AppKit/NSGradient/DrawingOptions/drawsAfterEndingLocation)

Drawing extends beyond the gradient end point.

### Initializers

[`init(rawValue:)`](/documentation/AppKit/NSGradient/DrawingOptions/init(rawValue:))

Creates a new instance with the specified raw value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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