<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapView/userTrackingMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKMapView(py)userTrackingMode"
  },
  "title" : "userTrackingMode"
}
-->

# userTrackingMode

The mode to use for tracking the user’s location.

```
var userTrackingMode: MKUserTrackingMode { get set }
```

## Discussion

Setting the tracking mode to [`MKUserTrackingMode.follow`](/documentation/MapKit/MKUserTrackingMode/follow) or [`MKUserTrackingMode.followWithHeading`](/documentation/MapKit/MKUserTrackingMode/followWithHeading) causes the map view to center the map on that location and begin tracking the user’s location. If it’s zoomed out, the map view automatically zooms in on the user’s location, effectively changing the current visible region.

For possible values, see [`MKUserTrackingMode`](/documentation/MapKit/MKUserTrackingMode).

---

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)