One Logo Pool Ball
PencilKit · IOS API REFERENCE

PKToolPickerEraserItem

class · iOS 18.0+ · SDK 27.1

class PKToolPickerEraserItem

Members (3)

get · iOS 18.0+

eraserTool

TypeScript
get eraserTool(): PKEraserTool
Swift declaration
var eraserTool: PKEraserTool { get }

An eraser tool for erasing parts of a drawing.

init · iOS 18.0+

init

TypeScript
static initTypeWidth(type: PKEraserTool_EraserType, width: number): PKToolPickerEraserItem
Swift declaration
convenience init(type: PKEraserTool.EraserType, width: CGFloat)

Create a new eraser tool item. - Parameters: - type: The eraser type for the tool. - width: The width for the tool.

init · iOS 18.0+

init

TypeScript
static initType(type: PKEraserTool_EraserType): PKToolPickerEraserItem
Swift declaration
convenience init(type: PKEraserTool.EraserType)

Create a new eraser tool item. - Parameter type: The eraser type for the tool.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PKToolPickerEraserItem.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All PencilKit types →