switchEraser
TypeScriptstatic get switchEraser(): PencilPreferredActionSwift declarationstatic let switchEraser: PencilPreferredActionAn action that switches between the current tool and the eraser.
struct · iOS 17.5+ · SDK 27.1
struct PencilPreferredActionAn action that the user prefers to perform after double-tapping their Apple Pencil.
static get switchEraser(): PencilPreferredActionSwift declarationstatic let switchEraser: PencilPreferredActionAn action that switches between the current tool and the eraser.
static get switchPrevious(): PencilPreferredActionSwift declarationstatic let switchPrevious: PencilPreferredActionAn action that switches between the current tool and the last used tool.
static get showColorPalette(): PencilPreferredActionSwift declarationstatic let showColorPalette: PencilPreferredActionAn action that toggles the display of the color palette.
static get runSystemShortcut(): PencilPreferredActionSwift declarationstatic let runSystemShortcut: PencilPreferredActionAn action that runs a system shortcut. If the user selects this as their preferred action to perform after double-tapping or squeezing their Apple Pencil, your app will never be notified when they do. Instead, you should only use this information to remind the user about their preference in your app’s UI.
static get showInkAttributes(): PencilPreferredActionSwift declarationstatic let showInkAttributes: PencilPreferredActionAn action that toggles the display of the current tool’s ink attributes.
static get showContextualPalette(): PencilPreferredActionSwift declarationstatic let showContextualPalette: PencilPreferredActionAn action that toggles the display of the contextual palette, or the undo/redo panel if contextual palette is not available.
static get ignore(): PencilPreferredActionSwift declarationstatic let ignore: PencilPreferredActionAn action that does nothing.
No declarations were skipped in this snapshot.