init(count:coordinateSpace:inputKinds:)
Creates a tap gesture with the number of required taps, the coordinate space of the gesture’s location, and the input kinds the gesture recognizes.
Declaration
nonisolated init(count: Int = 1, coordinateSpace: some CoordinateSpaceProtocol = .local, inputKinds: GestureInputKinds = .all)Parameters
- count:
The required number of taps to complete the tap gesture.
- coordinateSpace:
The coordinate space of the tap gesture’s location.
- 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.