Hello, I wanted to get the lat & lon where map is clicked/tapped but Gives Error on Tap onTapGesture "<0x10bf0....> Gesture: System gesture gate timed out" 2 out of 10 clicks it works , 8 times gives error Please help
MapReader { reader in
Map(position: $MapKit_Position_default , scope: mapScope) {
//...
}
.onTapGesture(perform: { screenCoord in
let pinLocation = reader.convert(screenCoord, from: .local)
print("[OnTap]:\(pinLocation)")
isLocationSetMarkerActive = true
})
.gesture(SpatialTapGesture().onEnded { event in
// Use event.location for the tap location
print("[gesture]:Tapped location: \(event.location)")
})