---
title: MKUserTrackingMode.followWithHeading
framework: mapkit
role: symbol
role_heading: Case
path: mapkit/mkusertrackingmode/followwithheading
---

# MKUserTrackingMode.followWithHeading

The map follows the user’s location and rotates when the heading changes.

## Declaration

```swift
case followWithHeading
```

## Discussion

Discussion This mode requires the device to have an available magnetometer. This mode isn’t available for compatible iPad or iPhone apps running in visionOS.

## See Also

### Constants

- [MKUserTrackingMode.none](mapkit/mkusertrackingmode/none.md)
- [MKUserTrackingMode.follow](mapkit/mkusertrackingmode/follow.md)
