Apple Pencil Pro Squeeze API

I wonder if an Apple engineer could confirm: will the Apple Pencil Pro squeeze functionality be detectable in the current API, or will this be a future iPadOS extension to gesture recognizers / UIKit? I’d like to start playing with the functionality if it’s detected behind an existing event though. (Long press?)

Replies

I wonder if an Apple engineer could confirm: will the Apple Pencil Pro squeeze functionality be detectable in the current API

Not in previously shipping API, but an addition to UIPencilInteraction and a view modifier in SwiftUI. Read all about it here!

https://developer.apple.com/documentation/applepencil/handling-squeezes-from-apple-pencil

Add a Comment