---
title: miterLimit
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshapenode/miterlimit
---

# miterLimit

The miter limit to use when the line is stroked using a miter join style.

## Declaration

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

## Discussion

Discussion If the line join style is set to CGLineJoin.miter, SpriteKit uses the miter limit to determine whether the lines should be joined with a bevel instead of a miter. SpriteKit divides the length of the miter by the line width. If the result is greater than the miter limit, SpriteKit converts the style to a bevel.

## See Also

### Stroking a Shape

- [lineWidth](spritekit/skshapenode/linewidth.md)
- [strokeColor](spritekit/skshapenode/strokecolor.md)
- [strokeTexture](spritekit/skshapenode/stroketexture.md)
- [glowWidth](spritekit/skshapenode/glowwidth.md)
- [lineCap](spritekit/skshapenode/linecap.md)
- [lineJoin](spritekit/skshapenode/linejoin.md)
- [isAntialiased](spritekit/skshapenode/isantialiased.md)
