<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapViewDelegate/mapViewDidStopLocatingUser(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(pl)MKMapViewDelegate(im)mapViewDidStopLocatingUser:"
  },
  "title" : "mapViewDidStopLocatingUser(_:)"
}
-->

# mapViewDidStopLocatingUser(_:)

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

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

## Parameters

`mapView`

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

## Discussion

The map view calls this method when the value of the [`showsUserLocation`](/documentation/MapKit/MKMapView/showsUserLocation) property changes to <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)