Contents

mapView(_:regionWillChangeAnimated:)

Tells the delegate when the region the map view is displaying is about to change.

Declaration

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

Parameters

  • mapView:

    The map view with the visible region that’s about to change.

  • animated:

    If True, the map view animates the change to the new region. If False, the map view makes the change immediately.

Discussion

The framework calls this method at the beginning of a change to the map’s visible region.

See Also

Related Documentation

  • Location and Maps Programming Guide

Responding to map position changes