To anyone wondering how to apply this to their UIViewRepresentable MKMapView:
func makeUIView(context: Context) -> MKMapView {
let mapView = MKMapView()
mapView.delegate = context.coordinator
mapView.layoutMargins = UIEdgeInsets(top: 0.0, left: 0, bottom: 50, right: 0)
return mapView
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: