<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapView/showsUserLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKMapView(py)showsUserLocation"
  },
  "title" : "showsUserLocation"
}
-->

# showsUserLocation

A Boolean value that indicates whether the map tries to display the user’s location.

```
var showsUserLocation: Bool { get set }
```

## Discussion

This property doesn’t indicate whether the user’s location is actually visible on the map, only whether the map view tries to display it. Setting this property to <doc://com.apple.documentation/documentation/Swift/true> causes the map view to use the Core Location framework to find the user’s location and try to display it on the map. While this property is <doc://com.apple.documentation/documentation/Swift/true>, the map view continues to track the user’s location and update it periodically. The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

Showing the user’s location doesn’t ensure that it’s visible on the map. The user might scroll the map to a different point, causing the location to be offscreen. To determine whether the user’s location displays on the map, use the [`isUserLocationVisible`](/documentation/MapKit/MKMapView/isUserLocationVisible) property.

---

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)