Contents

mapView(_:didChange:animated:)

Tells the delegate when the user-tracking mode changes.

Declaration

optional func mapView(_ mapView: MKMapView, didChange mode: MKUserTrackingMode, animated: Bool)

Parameters

  • mapView:

    The map view where the user-tracking mode changes.

  • mode:

    The mode to use for tracking the user’s location.

  • animated:

    If True, the map animates the change from the current mode to the new mode; otherwise, the map doesn’t animate the change. This parameter affects only tracking-mode changes. The map animates all changes to the user’s location and heading.

See Also

Related Documentation

Tracking the user’s location