<!--
{
  "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

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

Specifies the non-zero winding rule.

[`NSWindingRuleEvenOdd`](/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.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)