---
title: "location(in:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/nsgesturerecognizerrepresentablecoordinatespaceconverter/location(in:)"
---

# location(in:)

Converts the represented gesture recognizer’s current location to a SwiftUI coordinate space of an ancestor of the view the gesture recognizer is attached to.

## Declaration

```swift
func location(in coordinateSpace: some CoordinateSpaceProtocol) -> CGPoint
```

## Parameters

- `coordinateSpace`: The SwiftUI coordinate space to convert to.

## Return Value

Return Value The represrnted gesture recognizer’s current location converted into the given coordinateSpace.
