---
title: lineCap
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cashapelayer/linecap
---

# lineCap

Specifies the line cap style for the shape’s path.

## Declaration

```swift
var lineCap: CAShapeLayerLineCap { get set }
```

## Discussion

Discussion The line cap style specifies the shape of the endpoints of an open path when stroked. The supported values are described in Line Cap Values. The following figure shows the appearance of the available line cap styles.

The default is butt.

## See Also

### Accessing Shape Style Properties

- [fillColor](quartzcore/cashapelayer/fillcolor.md)
- [fillRule](quartzcore/cashapelayer/fillrule.md)
- [lineDashPattern](quartzcore/cashapelayer/linedashpattern.md)
- [lineDashPhase](quartzcore/cashapelayer/linedashphase.md)
- [lineJoin](quartzcore/cashapelayer/linejoin.md)
- [lineWidth](quartzcore/cashapelayer/linewidth.md)
- [miterLimit](quartzcore/cashapelayer/miterlimit.md)
- [strokeColor](quartzcore/cashapelayer/strokecolor.md)
- [strokeStart](quartzcore/cashapelayer/strokestart.md)
- [strokeEnd](quartzcore/cashapelayer/strokeend.md)
