<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBezierPath/lineCapStyle-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBezierPath(py)lineCapStyle"
  },
  "title" : "lineCapStyle"
}
-->

# lineCapStyle

The line cap style for the path.

```
var lineCapStyle: NSBezierPath.LineCapStyle { get set }
```

## Discussion

The line cap style specifies the shape of the endpoints on an open path when stroked. The default value of this property is the value returned by the [`defaultLineCapStyle`](/documentation/AppKit/NSBezierPath/defaultLineCapStyle) method.

## See Also

[`defaultLineCapStyle`](/documentation/AppKit/NSBezierPath/defaultLineCapStyle)

Returns the default line cap style for all paths.

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

Constants that specify the shape of endpoints for an open path when it is stroked.



---

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)