---
title: "init(count:coordinateSpace:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/spatialtapgesture/init(count:coordinatespace:)-1b85g"
---

# init(count:coordinateSpace:)

Creates a tap gesture with the number of required taps and the coordinate space of the gesture’s location.

## Declaration

```swift
nonisolated init(count: Int = 1, coordinateSpace: CoordinateSpace = .local)
```

## Parameters

- `count`: The required number of taps to complete the tap gesture.
- `coordinateSpace`: The coordinate space of the tap gesture’s location.
