Search code examples
swiftmkmapview

Get selected areas coordinate


In my map the user can zoom in and zoom out, but how do I get the coordinates for the entire view that is visible for the user? I suspect that it might be the regionDidChangeAnimated but I have not been able to find appropiate parameters in that function.

Any ideas how to solve this?


Solution

  • You can get the visible area by calling the instance method visibleMapRect of MKMapView.