---
title: "maximumWidth(for:)"
framework: pencilkit
role: symbol
role_heading: Type Method
path: "pencilkit/pkerasertoolreference/maximumwidth(for:)"
---

# maximumWidth(for:)

The maximum width for the specified eraser type.

## Declaration

```swift
class func maximumWidth(for eraserType: __PKEraserType) -> CGFloat
```

## See Also

### Getting the width information

- [width](pencilkit/pkerasertoolreference/width.md)
- [defaultWidth(for:)](pencilkit/pkerasertoolreference/defaultwidth(for:).md)
- [minimumWidth(for:)](pencilkit/pkerasertoolreference/minimumwidth(for:).md)
