Contents

convert(globalPoint:to:)

Converts a point in the global coordinate space to a SwiftUI coordinate space of an ancestor of the view the gesture recognizer is attached to.

Declaration

func convert(globalPoint: CGPoint, to coordinateSpace: some CoordinateSpaceProtocol = .local) -> CGPoint

Parameters

  • globalPoint:

    The point in the global coordinate space.

  • coordinateSpace:

    The SwiftUI coordinate space to convert to.