---
title: lineWidth
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshapenode/linewidth
---

# lineWidth

The width used to stroke the path.

## Declaration

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

## Mentioned in

Getting Started with Shape Nodes

## Discussion

Discussion A line width larger than 2.0 may cause rendering artifacts in the final rendered image. The default value is 1.0.

## See Also

### Stroking a Shape

- [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)
- [miterLimit](spritekit/skshapenode/miterlimit.md)
- [isAntialiased](spritekit/skshapenode/isantialiased.md)
