---
title: width
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pkinkingtoolreference/width
---

# width

The base line width for new content.

## Declaration

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

## 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/pkinkingtoolreference/color.md)
- [ink](pencilkit/pkinkingtoolreference/ink.md)
