---
title: CGGradientDrawingOptions
framework: coregraphics
role: symbol
role_heading: Structure
path: coregraphics/cggradientdrawingoptions
---

# CGGradientDrawingOptions

Drawing locations for gradients.

## Declaration

```swift
struct CGGradientDrawingOptions
```

## Topics

### Constants

- [drawsBeforeStartLocation](coregraphics/cggradientdrawingoptions/drawsbeforestartlocation.md)
- [drawsAfterEndLocation](coregraphics/cggradientdrawingoptions/drawsafterendlocation.md)

### Initializers

- [init(rawValue:)](coregraphics/cggradientdrawingoptions/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)

## See Also

### Drawing Gradients and Shadings

- [drawLinearGradient(_:start:end:options:)](coregraphics/cgcontext/drawlineargradient(_:start:end:options:).md)
- [drawRadialGradient(_:startCenter:startRadius:endCenter:endRadius:options:)](coregraphics/cgcontext/drawradialgradient(_:startcenter:startradius:endcenter:endradius:options:).md)
- [drawShading(_:)](coregraphics/cgcontext/drawshading(_:).md)
