<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBezierPath/WindingRule-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWindingRule"
  },
  "title" : "NSBezierPath.WindingRule"
}
-->

# NSBezierPath.WindingRule

Constants that specify the winding rule a Bézier path uses.

```
enum WindingRule
```

## Overview

For more information, see [`NSBezierPath`](/documentation/AppKit/NSBezierPath).

## Topics

### Constants

[`NSBezierPath.WindingRule.nonZero`](/documentation/AppKit/NSBezierPath/WindingRule-swift.enum/nonZero)

Specifies the non-zero winding rule.

[`NSBezierPath.WindingRule.evenOdd`](/documentation/AppKit/NSBezierPath/WindingRule-swift.enum/evenOdd)

Specifies the even-odd winding rule.

### Deprecated Constants

[`NSNonZeroWindingRule`](/documentation/AppKit/NSNonZeroWindingRule)

Specifies the non-zero winding rule.

[`NSEvenOddWindingRule`](/documentation/AppKit/NSEvenOddWindingRule)

Specifies the even-odd winding 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)