General questions

Use only Apple Pencil as input method – don't draw with finger

I am developing an iPad app, and I would like to only use the Apple Pencil as the input method. I am also a proud owner of the MyScript calculator app – in which it's possible to only use the Pencil and not the finger. Sadly I don't seem to be able to find how to set that up. Could you maybe help me?


Hello Ludwigpatzold,

To be honnest this is not very MyScript related; I guess you will have all information you need here:

https://developer.apple.com/documentation/uikit/pencil_interactions/handling_input_from_apple_pencil

Best regards,

Etienne


1 person likes this

I‘m sorry, I‘m not very comfortable with UIKit, but you’re completely correct… I just assumed the InputMode.forcePen would do that in your reference implementation. But thanks a lot, I can just filter for touches where touch.type == .pencil. 

Login or Signup to post a comment