---
title: "init(count:inputKinds:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/tapgesture/init(count:inputkinds:)"
---

# init(count:inputKinds:)

Creates a tap gesture with the number of required taps and the input kinds the gesture recognizes.

## Declaration

```swift
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.

## See Also

### Creating a tap gesture

- [init(count:)](swiftui/tapgesture/init(count:).md)
- [count](swiftui/tapgesture/count.md)
