Contents

isUserLocationVisible

A Boolean value that indicates whether the user’s location is visible in the map view.

Declaration

var isUserLocationVisible: Bool { get }

Discussion

When determining whether the user’s location is visible, this property factors in the horizontal accuracy of the location data. Specifically, if the rectangle that the user’s location represents, plus or minus the horizontal accuracy of that location, intersects the map’s visible rectangle, this property contains the value true. If that location rectangle doesn’t intersect the map’s visible rectangle, this property contains the value false.

When the user’s location is unknown, this property contains the value false.

See Also

Displaying the user’s location