<!--
{
  "availability" : [
    "macOS: 10.15.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLLocationManager/locationServicesEnabled-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Location"
    ],
    "preciseIdentifier" : "c:objc(cs)CLLocationManager(py)locationServicesEnabled"
  },
  "title" : "locationServicesEnabled"
}
-->

# locationServicesEnabled

A Boolean value indicating whether location services are enabled on the device.

```
var locationServicesEnabled: Bool { get }
```

## Discussion

In iOS, the user can enable or disable location services using the controls in Settings > Location Services. In macOS, the user can enable or disable location services from the Security & Privacy system preference.

If this property contains the value <doc://com.apple.documentation/documentation/Swift/false> and you start location updates anyway, the Core Location framework prompts the user with a confirmation alert asking whether location services should be reenabled.

### Special Considerations

In iOS, this property is declared as `nonatomic`. In macOS, it is declared as `atomic`.

---

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)