Instance Method

mapView(_:regionWillChangeAnimated:)

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

Declaration

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

Parameters

mapView

The map view whose visible region is about to change.

animated

If true, the change to the new region will be animated. If false, the change will be made immediately.

Discussion

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

See Also

Responding to Map Position Changes

func mapViewDidChangeVisibleRegion(MKMapView)

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

func mapView(MKMapView, regionDidChangeAnimated: Bool)

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