allowedTouchTypes
The touch types that this gesture recognizer accepts.
Declaration
var allowedTouchTypes: NSTouch.TouchTypeMask { get set }Mentioned in
Discussion
Gesture recognizers only support direct touches, such as those from a Mac with a touch display or a Sidecar-connected iPad. Setting this property to include indirect — for touches from a trackpad — isn’t supported.
This property defaults to direct as of macOS 27. On earlier releases, it defaults to an empty mask, so set it explicitly if your gesture recognizer needs to receive touches.