One Logo Pool Ball
_MapKit_SwiftUI · IOS API REFERENCE

UserLocation

struct · iOS 17.0+ · SDK 27.1

struct UserLocation

Information about the current location of the user.

Members (2)

get · iOS 17.0+

heading

TypeScript
get heading(): (_CoreLocation_CLHeading) | null
Swift declaration
var heading: CLHeading? { get }
get · iOS 17.0+

location

TypeScript
get location(): (__LocationEssentials_CLLocation) | null
Swift declaration
var location: CLLocation? { get }

The user's current location.

Skipped declarations

No declarations were skipped in this snapshot.

All _MapKit_SwiftUI types →