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

# init(count:)

Creates a tap gesture with the number of required taps.

## Declaration

```swift
nonisolated init(count: Int = 1)
```

## Parameters

- `count`: The required number of taps to complete the tap gesture.

## See Also

### Creating a tap gesture

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