---
title: lineCap
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkoverlaypathrenderer/linecap
---

# lineCap

The line cap style to apply to the open ends of the path.

## Declaration

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

## Discussion

Discussion The line cap style applies to the start and end points of any open subpaths. This property doesn’t affect closed subpaths. The default line cap style is CGLineCap.round.

## See Also

### Accessing the drawing attributes

- [fillColor](mapkit/mkoverlaypathrenderer/fillcolor.md)
- [strokeColor](mapkit/mkoverlaypathrenderer/strokecolor.md)
- [lineWidth](mapkit/mkoverlaypathrenderer/linewidth.md)
- [lineJoin](mapkit/mkoverlaypathrenderer/linejoin.md)
- [miterLimit](mapkit/mkoverlaypathrenderer/miterlimit.md)
- [lineDashPhase](mapkit/mkoverlaypathrenderer/linedashphase.md)
- [lineDashPattern](mapkit/mkoverlaypathrenderer/linedashpattern.md)
