---
title: CGPathDrawingMode
framework: coregraphics
role: symbol
role_heading: Enumeration
path: coregraphics/cgpathdrawingmode
---

# CGPathDrawingMode

Options for rendering a path.

## Declaration

```swift
enum CGPathDrawingMode
```

## Overview

Overview You can pass a path drawing mode constant to the function drawPath(using:) to specify how Core Graphics should paint a graphics context’s current path.

## Topics

### Constants

- [CGPathDrawingMode.fill](coregraphics/cgpathdrawingmode/fill.md)
- [CGPathDrawingMode.eoFill](coregraphics/cgpathdrawingmode/eofill.md)
- [CGPathDrawingMode.stroke](coregraphics/cgpathdrawingmode/stroke.md)
- [CGPathDrawingMode.fillStroke](coregraphics/cgpathdrawingmode/fillstroke.md)
- [CGPathDrawingMode.eoFillStroke](coregraphics/cgpathdrawingmode/eofillstroke.md)

### Initializers

- [init(rawValue:)](coregraphics/cgpathdrawingmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Drawing the Current Graphics Path

- [drawPath(using:)](coregraphics/cgcontext/drawpath(using:).md)
- [fillPath(using:)](coregraphics/cgcontext/fillpath(using:).md)
- [strokePath()](coregraphics/cgcontext/strokepath().md)
