<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBezierPath/defaultWindingRule",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBezierPath(cpy)defaultWindingRule"
  },
  "title" : "defaultWindingRule"
}
-->

# defaultWindingRule

Returns the default winding rule used to fill all paths.

```
class var defaultWindingRule: NSBezierPath.WindingRule { get set }
```

## Return Value

The current default winding rule or [`NSNonZeroWindingRule`](/documentation/AppKit/NSNonZeroWindingRule) if no default rule has been set. This value may be either [`NSNonZeroWindingRule`](/documentation/AppKit/NSNonZeroWindingRule) or [`NSEvenOddWindingRule`](/documentation/AppKit/NSEvenOddWindingRule).

## See Also

[`var windingRule: NSBezierPath.WindingRule`](/documentation/AppKit/NSBezierPath/windingRule-swift.property)

The winding rule used to fill the path.



---

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)