Contents

mapView(_:didFailToLocateUserWithError:)

Tells the delegate when an attempt to locate the user’s location fails.

Declaration

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

Parameters

  • mapView:

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

  • error:

    An error object containing the reason why location tracking fails.

See Also

Tracking the user’s location