---
title: square
framework: quartzcore
role: symbol
role_heading: Type Property
path: quartzcore/cashapelayerlinecap/square
---

# square

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

## Declaration

```swift
static let square: CAShapeLayerLineCap
```

## See Also

### Constants

- [butt](quartzcore/cashapelayerlinecap/butt.md)
- [round](quartzcore/cashapelayerlinecap/round.md)
