<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPathFillRule",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "s:12CoreGraphics14CGPathFillRuleO"
  },
  "title" : "CGPathFillRule"
}
-->

# CGPathFillRule

Rules for determining which regions are interior to a path, used by the [`fillPath(using:)`](/documentation/CoreGraphics/CGContext/fillPath(using:)) and [`clip(using:)`](/documentation/CoreGraphics/CGContext/clip(using:)) methods.

```
enum CGPathFillRule
```

## Overview

When filling a path, regions that a fill rule defines as interior to the path are painted. When clipping with a path, regions interior to the path remain visible after clipping.

## Topics

### Enumeration Cases

[`CGPathFillRule.evenOdd`](/documentation/CoreGraphics/CGPathFillRule/evenOdd)

A rule that considers a region to be interior to a path based on the number of times it is enclosed by path elements.

[`CGPathFillRule.winding`](/documentation/CoreGraphics/CGPathFillRule/winding)

A rule that considers a region to be interior to a path if the winding number for that region is nonzero.

### Type Aliases

### Initializers

### Instance Properties

### Instance Methods

### Operator Functions



---

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)