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

# NSBezierPath.LineCapStyle.square

Specifies a square line cap style for endpoints for an open path when stroked.

```
case square
```

## Discussion

Here is an example of the appearance of this style:

![Diagram that shows the square line cap style.](images/com.apple.appkit/media-3670933@2x.png)

---

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)