---
title: "userLocation(followsHeading:fallback:)"
framework: mapkit
role: symbol
role_heading: Type Method
path: "mapkit/mapcameraposition/userlocation(followsheading:fallback:)"
---

# userLocation(followsHeading:fallback:)

Creates a camera position with the specific fallback position and optionally follows the user’s heading.

## Declaration

```swift
static func userLocation(followsHeading: Bool = false, fallback: MapCameraPosition) -> MapCameraPosition
```

## Parameters

- `followsHeading`: A Boolean value that indicates whether the camera follows the person’s heading.
- `fallback`: A fallback position to use if the map hasn’t resolved the person’s location.

## Return Value

Return Value A new MapCameraPosition.

## See Also

### Creating a camera position

- [camera(_:)](mapkit/mapcameraposition/camera(_:).md)
- [item(_:allowsAutomaticPitch:)](mapkit/mapcameraposition/item(_:allowsautomaticpitch:).md)
- [rect(_:)](mapkit/mapcameraposition/rect(_:).md)
- [region(_:)](mapkit/mapcameraposition/region(_:).md)
