---
title: "init(type:width:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pktoolpickereraseritem/init(type:width:)"
---

# init(type:width:)

Creates a new eraser item with the specified width.

## Declaration

```swift
convenience init(type: PKEraserTool.EraserType, width: CGFloat)
```

## See Also

### Creating an eraser item

- [init(type:)](pencilkit/pktoolpickereraseritem/init(type:).md)
