SwiftUI Button on top of a MKMapView does not get triggered
问题 I have a button on top of a MKMapView. But the button does not get triggered when it's tapped on. Do you know what's missing? MapView.swift import SwiftUI import UIKit import MapKit struct MapView: UIViewRepresentable { func makeUIView(context: Context) -> MKMapView { let mkMapView = MKMapView() return mkMapView } func updateUIView(_ uiView: MKMapView, context: Context) { } func makeCoordinator() -> Coordinator { Coordinator() } class Coordinator: NSObject, MKMapViewDelegate { } } ContentView