Instance Method

mapViewWillStartLocatingUser(_:)

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

Declaration

optional func mapViewWillStartLocatingUser(_ mapView: MKMapView)

Parameters

mapView

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

Discussion

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.