---
title: "makeCoordinator(converter:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/nsgesturerecognizerrepresentable/makecoordinator(converter:)"
---

# makeCoordinator(converter:)

Creates the custom object that you use to communicate state changes from your gesture recognizer to other parts of your SwiftUI interface.

## Declaration

```swift
@MainActor @preconcurrency func makeCoordinator(converter: Self.CoordinateSpaceConverter) -> Self.Coordinator
```

## Parameters

- `converter`: A structure used to convert locations to/from coordinate spaces in the hierarchy of the associated SwiftUI view.

## Discussion

Discussion You access the resulting coordinator via the Context passed into other methods in this protocol.
