Contents

Apple Pencil interactions

Handle user interactions like double tap and squeeze on Apple Pencil.

Overview

Apple Pencil interactions let a person perform certain actions in your app by double-tapping or squeezing an Apple Pencil. Support Apple Pencil interactions to give people a quick way to perform their preferred action, such as switching between drawing tools, or a custom action that you define in your app.

[Image]

Topics

Essentials

Apple Pencil interactions in SwiftUI

Apple Pencil interactions in UIKit

See Also

User interactions