Contents

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

@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

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