---
title: "init(_:width:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkerasertool-swift.struct/init(_:width:)"
---

# init(_:width:)

Creates an eraser tool object with the specified width.

## Declaration

```swift
init(_ eraserType: PKEraserTool.EraserType, width: CGFloat)
```

## See Also

### Creating an eraser tool

- [init(_:)](pencilkit/pkerasertool-swift.struct/init(_:).md)
