Instance Method


Tells the delegate that the map view will start tracking the user’s position.


optional func mapViewWillStartLocatingUser(_ mapView: MKMapView)



The map view that is tracking the user’s location.


This method is called when the value of the showsUserLocation property changes to true.

See Also

Tracking the User Location

func mapViewDidStopLocatingUser(MKMapView)

Tells the delegate that the map view stopped tracking the user’s location.

func mapView(MKMapView, didUpdate: MKUserLocation)

Tells the delegate that the location of the user was updated.

func mapView(MKMapView, didFailToLocateUserWithError: Error)

Tells the delegate that an attempt to locate the user’s position failed.

func mapView(MKMapView, didChange: MKUserTrackingMode, animated: Bool)

Tells the delegate that the user tracking mode changed.