Instance Method


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


optional func mapView(_ mapView: MKMapView, didFailToLocateUserWithError error: Error)



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


An error object containing the reason why location tracking failed.

See Also

Tracking the User Location

func mapViewWillStartLocatingUser(MKMapView)

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

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, didChange: MKUserTrackingMode, animated: Bool)

Tells the delegate that the user tracking mode changed.