Show user location on map SwiftUI
问题 I am trying to load a map and have the initial location on user's location as well as showing the user's location on the map using SwiftUI. I don't know how to do that in SwiftUI. I have tried to put 'view.showsUserLocation = true' in updateUIView function but it is not working. import SwiftUI import MapKit struct MapView : UIViewRepresentable { func makeUIView(context: Context) -> MKMapView { MKMapView(frame: .zero) } func updateUIView(_ view: MKMapView, context: Context) { view