---
title: "mapViewDidStopLocatingUser(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapviewdelegate/mapviewdidstoplocatinguser(_:)"
---

# mapViewDidStopLocatingUser(_:)

Tells the delegate when the map view stops tracking the user’s location.

## Declaration

```swift
optional func mapViewDidStopLocatingUser(_ mapView: MKMapView)
```

## Parameters

- `mapView`: The map view that stops tracking the user’s location.

## Discussion

Discussion The map view calls this method when the value of the showsUserLocation property changes to false.

## See Also

### Tracking the user’s location

- [mapViewWillStartLocatingUser(_:)](mapkit/mkmapviewdelegate/mapviewwillstartlocatinguser(_:).md)
- [mapView(_:didUpdate:)](mapkit/mkmapviewdelegate/mapview(_:didupdate:).md)
- [mapView(_:didFailToLocateUserWithError:)](mapkit/mkmapviewdelegate/mapview(_:didfailtolocateuserwitherror:).md)
- [mapView(_:didChange:animated:)](mapkit/mkmapviewdelegate/mapview(_:didchange:animated:).md)
