---
title: CGPathFillRule
framework: coregraphics
role: symbol
role_heading: Enumeration
path: coregraphics/cgpathfillrule
---

# CGPathFillRule

Rules for determining which regions are interior to a path, used by the fillPath(using:) and clip(using:) methods.

## Declaration

```swift
enum CGPathFillRule
```

## Overview

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](coregraphics/cgpathfillrule/evenodd.md)
- [CGPathFillRule.winding](coregraphics/cgpathfillrule/winding.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)

## See Also

### Constants

- [CGTextEncoding](coregraphics/cgtextencoding.md)
