<!--
{
  "documentType" : "article",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/line-cap-values",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Line Cap Values"
}
-->

# Line Cap Values

These constants specify the shape of endpoints for an open path when stroked.

## Discussion

Used by [`lineCap`](/documentation/QuartzCore/CAShapeLayer/lineCap). The following figure shows the appearance of the available line cap styles.

![](images/com.apple.quartzcore/media-1965770.gif)

## Topics

### Constants

[`butt`](/documentation/QuartzCore/CAShapeLayerLineCap/butt)

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

[`round`](/documentation/QuartzCore/CAShapeLayerLineCap/round)

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

[`square`](/documentation/QuartzCore/CAShapeLayerLineCap/square)

Specifies a square line cap style for endpoints for an open path when 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)