Move the "Maps" and "Legal" text in Map View

Apple Recommended

  • 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
    }
    
Add a Comment

Replies

  • 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
    }
    
Add a Comment