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

# width

The width of the eraser.

## Declaration

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