A Boolean value indicating whether the map should try to display the user’s location.
- iOS 3.0+
- macOS 10.9+
- tvOS 9.2+
This property does not indicate whether the user’s position is actually visible on the map, only whether the map view should try to display it. Setting this property to
true causes the map view to use the Core Location framework to find the current location and try to display it on the map. As long as this property is
true, the map view continues to track the user’s location and update it periodically. The default value of this property is
Showing the user’s location does not guarantee that the location is visible on the map. The user might have scrolled the map to a different point, causing the current location to be offscreen. To determine whether the user’s current location is currently displayed on the map, use the