---
title: miterLimit
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbezierpath/miterlimit
---

# miterLimit

The limit at which miter joins are converted to bevel joins.

## Declaration

```swift
var miterLimit: CGFloat { get set }
```

## Discussion

Discussion The miter limit helps you avoid spikes at the junction of two line segments connected by a miter join (NSMiterLineJoinStyle). If the ratio of the miter length—the diagonal length of the miter join—to the line thickness exceeds the miter limit, the joint is converted to a bevel join. The default value of this property is the value returned by the defaultMiterLimit method.

## See Also

### Related Documentation

- [defaultMiterLimit](appkit/nsbezierpath/defaultmiterlimit.md)

### Accessing a Path’s Attributes

- [windingRule](appkit/nsbezierpath/windingrule-swift.property.md)
- [lineCapStyle](appkit/nsbezierpath/linecapstyle-swift.property.md)
- [lineJoinStyle](appkit/nsbezierpath/linejoinstyle-swift.property.md)
- [lineWidth](appkit/nsbezierpath/linewidth.md)
- [flatness](appkit/nsbezierpath/flatness.md)
- [getLineDash(_:count:phase:)](appkit/nsbezierpath/getlinedash(_:count:phase:).md)
- [setLineDash(_:count:phase:)](appkit/nsbezierpath/setlinedash(_:count:phase:).md)
