---
title: userTrackingMode
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkmapview/usertrackingmode
---

# userTrackingMode

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

## Declaration

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

## Discussion

Discussion Setting the tracking mode to MKUserTrackingMode.follow or 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.

## See Also

### Displaying the user’s location

- [Converting a user’s location to a descriptive placemark](mapkit/converting-a-user-s-location-to-a-descriptive-placemark.md)
- [showsUserLocation](mapkit/mkmapview/showsuserlocation.md)
- [isUserLocationVisible](mapkit/mkmapview/isuserlocationvisible.md)
- [userLocation](mapkit/mkmapview/userlocation.md)
- [setUserTrackingMode(_:animated:)](mapkit/mkmapview/setusertrackingmode(_:animated:).md)
- [MKUserTrackingMode](mapkit/mkusertrackingmode.md)
