<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBezierPath/miterLimit",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBezierPath(py)miterLimit"
  },
  "title" : "miterLimit"
}
-->

# miterLimit

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

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

## Discussion

The miter limit helps you avoid spikes at the junction of two line segments connected by a miter join ([`NSMiterLineJoinStyle`](/documentation/AppKit/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`](/documentation/AppKit/NSBezierPath/defaultMiterLimit) method.

## See Also

[`defaultMiterLimit`](/documentation/AppKit/NSBezierPath/defaultMiterLimit)

Returns the default miter limit for all paths.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)