<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPathDrawingMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@E@CGPathDrawingMode"
  },
  "title" : "CGPathDrawingMode"
}
-->

# CGPathDrawingMode

Options for rendering a path.

```
enum CGPathDrawingMode
```

## Overview

You can pass a path drawing mode constant to the function [`drawPath(using:)`](/documentation/CoreGraphics/CGContext/drawPath(using:)) to specify how Core Graphics should paint a graphics context’s current path.

## Topics

### Constants

[`CGPathDrawingMode.fill`](/documentation/CoreGraphics/CGPathDrawingMode/fill)

Render the area contained within the path using the non-zero winding number rule.

[`CGPathDrawingMode.eoFill`](/documentation/CoreGraphics/CGPathDrawingMode/eoFill)

Render the area within the path using the even-odd rule.

[`CGPathDrawingMode.stroke`](/documentation/CoreGraphics/CGPathDrawingMode/stroke)

Render a line along the path.

[`CGPathDrawingMode.fillStroke`](/documentation/CoreGraphics/CGPathDrawingMode/fillStroke)

First fill and then stroke the path, using the nonzero winding number rule.

[`CGPathDrawingMode.eoFillStroke`](/documentation/CoreGraphics/CGPathDrawingMode/eoFillStroke)

First fill and then stroke the path, using the even-odd rule.



---

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)