I got a reply. Use MapReader
Here is my example:
https://github.com/tomha2014/LearnMapKitiOS17.git
Now I'm trying to draw polylines
MapReader{ reader in Map() .onTapGesture(perform: { screenCoord in pinLocation = reader.convert(screenCoord, from: .local) })
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: