Instance Method

mapView(_:regionDidChangeAnimated:)

Tells the delegate that the region displayed by the map view just changed.

Declaration

optional func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool)

Parameters

mapView

The map view whose visible region changed.

animated

If true, the change to the new region was animated.

Discussion

This method is called at the end of a change to the map's visible region.

See Also

Responding to Map Position Changes

func mapView(MKMapView, regionWillChangeAnimated: Bool)

Tells the delegate that the region displayed by the map view is about to change.

func mapViewDidChangeVisibleRegion(MKMapView)

Tells the delegate that the map view's visible region changed.