Enumeration Case

UIPencilPreferredAction.switchEraser

The action indicating to switch from the current tool to the eraser.

Declaration

case switchEraser = 1

Discussion

If the eraser is the current tool when handling the pencilInteractionDidTap(_:), switch to the tool that was in use before the eraser.

See Also

Preferred Actions

case ignore

The action indicating to ignore double taps a user makes on Apple Pencil.

case switchPrevious

The action indicating to switch from the current tool to the one previously in use.

case showColorPalette

The action indicating to display a color palette.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software