---
title: NSGradient.DrawingOptions
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nsgradient/drawingoptions
---

# NSGradient.DrawingOptions

Constants that specify gradient drawing options.

## Declaration

```swift
struct DrawingOptions
```

## Overview

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

- [drawsBeforeStartingLocation](appkit/nsgradient/drawingoptions/drawsbeforestartinglocation.md)
- [drawsAfterEndingLocation](appkit/nsgradient/drawingoptions/drawsafterendinglocation.md)

### Initializers

- [init(rawValue:)](appkit/nsgradient/drawingoptions/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
