<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/UserLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI12UserLocationV"
  },
  "title" : "UserLocation"
}
-->

# UserLocation

A structure that contains Information about the person’s current location.

```
struct UserLocation
```

## Topics

### Accessing the user’s location and heading

[`var heading: CLHeading?`](/documentation/MapKit/UserLocation/heading)

A value that indicates the heading of the person’s device.

[`var location: CLLocation?`](/documentation/MapKit/UserLocation/location)

An object that describes the current location of the persons’s device, including the latitude and longitude.



---

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)