---
title: width
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pkinkingtool-swift.struct/width
---

# width

The width of the ink.

## Declaration

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

## Discussion

Discussion The actual line width at any given point varies based on input from Apple Pencil. For finger-based drawing, the line width is equal to the value in this property.

## See Also

### Getting the inking tool attributes

- [color](pencilkit/pkinkingtool-swift.struct/color-5xmlo.md)
- [color](pencilkit/pkinkingtool-swift.struct/color-22zaw.md)
- [ink](pencilkit/pkinkingtool-swift.struct/ink.md)
