iOS26 `onTapGesture` when applied to a Map does not respond
When a onTapGesture is applied to Map the gesture does not respond in iOS26.
e.g
import SwiftUI
import MapKit
struct ContentView: View {
var merp: String {
if #available(iOS 26.0, *) {
"Hello, ios26"
} else {
"Hello, old man"
}
}
var body: some View {
VStack {
Text(merp)
Rectangle()
.onTapGesture { location in
print("wooo \(location.x) - \(location.y)")
}
Map()
.onTapGesture { location in
print("waaa \(location.x) - \(location.y)")
}
}
.padding()
}
}
wooo is printed to console on a touch in the rectangle. waaa is NOT printed on a touch in the map.
Is there a workaround for this issue as it’s found in iOS 26.0 production.
This code works in iOS 18.6. This issue is currently tracked in DTS 859521022 and is likely to be transient.