I'm trying to figure out how to tell when the animation is finished for the following:
self.mapView.setRegion(MKCoordinateRegionForMapRect(mapRect), animated: true)
It doesn't look like setRegion
supports a completion handler like other commands.
I know how to create a generic completion handler using something like this: How could I create a function with a completion handler in Swift?
But I don't know what variable to check to verify the animation has completed.