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

# defaultLineCapStyle

Returns the default line cap style for all paths.

```
class var defaultLineCapStyle: NSBezierPath.LineCapStyle { get set }
```

## Return Value

The default line cap style or `NSButtLineCapStyle` if no other style has been set. For a list of values, see Constants.

## Discussion

The default line cap style can be overridden for individual paths by setting a custom style for that path using the [`NSBezierPath`](/documentation/AppKit/NSBezierPath) method.

## See Also

[`var lineCapStyle: NSBezierPath.LineCapStyle`](/documentation/AppKit/NSBezierPath/lineCapStyle-swift.property)

The line cap style for 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)