init(count:inputKinds:)
Creates a tap gesture with the number of required taps and the input kinds the gesture recognizes.
Declaration
nonisolated init(count: Int = 1, inputKinds: GestureInputKinds = .all)Parameters
- count:
The required number of taps to complete the tap gesture.
- inputKinds:
A set of input kinds that this gesture recognizes. If not specified, the gesture will recognize all applicable input kinds that a person can use to perform it.