Link Search Menu Expand Document

TapGestureRecognizer

A discrete gesture recognizer that interprets single or multiple taps.

public class TapGestureRecognizer: GestureRecognizer 

Inheritance

GestureRecognizer

Properties

buttonMaskRequired

The bitmask of the buttons the user must press for gesture recognition.

public var buttonMaskRequired: Event.ButtonMask = [.primary]

numberOfTapsRequired

The number of taps necessary for gesture recognition.

public var numberOfTapsRequired: Int = 1

numberOfTouchesRequired

The number of fingers that the user must tap for gesture recognition.

public var numberOfTouchesRequired: Int = 1