---
title: location
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/spatialtapgesture/value/location
---

# location

The location of the tap gesture’s current event.

## Declaration

```swift
var location: CGPoint
```

## See Also

### Getting the tap location

- [location3D](swiftui/spatialtapgesture/value/location3d.md)
