Contents

isPencilInputExpected

A Boolean value that indicates the user is likely to use Apple Pencil and handwriting instead of the keyboard to enter text.

Declaration

class var isPencilInputExpected: Bool { get }

Discussion

If set to true, adjust the layout of UI elements that aren’t optimal for direct handwriting input. This allows more room for interaction with Apple Pencil. For example, small or resizable text fields can temporarily change their height to receive input from Apple Pencil, while preserving padding along the bottom of the text field.