Any help with this?
Hi there, can you tell me why mapViewDidChangeVisibleRegion does not update when this is run? it doesn't print anything when I move map around. I get this message: MobileGestalt.c:1647: Could not retrieve region info
struct MapView: UIViewRepresentable {
class Coordinator: NSObject, MKMapViewDelegate {
var parent: MapView
init(_ parent: MapView) {
self.parent = parent }
}
func **mapViewDidChangeVisibleRegion**(_ mapView: MKMapView) {
print(mapView.centerCoordinate)
}