---
title: CGLineCap.square
framework: coregraphics
role: symbol
role_heading: Case
path: coregraphics/cglinecap/square
---

# CGLineCap.square

A line with a squared-off end. Core Graphics extends the line beyond the endpoint of the path for a distance equal to half the line width.

## Declaration

```swift
case square
```

## See Also

### Constants

- [CGLineCap.butt](coregraphics/cglinecap/butt.md)
- [CGLineCap.round](coregraphics/cglinecap/round.md)
