I have MKMapView, which I am expanding and compressing with this code:
UIView.animate(withDuration: 0.5) {
mapView.frame = CGRect(x: 0, y: 0, width: 200, height: 400)
}
Before iOS 11, the above code runs the delegate method regionDidChangeAnimated
after the animation is complete. This will change its area and will increase the level of scaling.
In iOS 11, only the scale changes. None of the delegate methods start.
I need to have it as before. Changing the frame of the map should simply increase the visible area without changing the scale.
I tried to set mapView.isZoomEnabled = false
mapViews before changing the frame, but the zoom level continues to change.
Update:
I added two animated GIFs to compare iOS 11 with previous versions of iOS.
IOS 11 . .
, IOS 9 , .
IOS 11:

IOS 9:
