I'm using SceneKit to render a 3D model on an iPad Pro. My requirement is that I'd like to perform different interactions when using the Apple Pencil.
Is there a way to distinguish between a finger touch and an Apple Pencil touch?
I tried overriding the touchesBegan
function and filtering the UITouch
in the Set
to ignore the ones with type pencil
, but that doesn't seem to do anything...
EDIT: I'm more interested in handling these 2 different types of touches (i.e. when the there's a finger touch event, I want to do some action A. If it's pencil, I want to do action B). Which methods do I even override to achieve this segregation?