I need to detect right-clicks / two-finger clicks with a trackpad or mouse on an iPad inside an action extension.
I am finding that if I put a UITapGestureRecognizer
in a view controller inside an action extension and set its allowedTouchTypes
to UITouch.TouchType.indirectPointer,
the gesture recognizer does not fire and none of the UIGestureRecognizerDelegate
methods are ever called. The same code inside a standalone app works, just not in an action extension. This happens on both iPadOS 15.5 and iPadOS 16.
I can filed FB10296917
regarding this, but it seems odd enough that I wanted to ask here whether I might be missing something.