<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMotion",
  "identifier" : "/documentation/CoreMotion/CMMotionManager/isMagnetometerAvailable",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Motion"
    ],
    "preciseIdentifier" : "c:objc(cs)CMMotionManager(py)magnetometerAvailable"
  },
  "title" : "isMagnetometerAvailable"
}
-->

# isMagnetometerAvailable

A Boolean value that indicates whether a magnetometer is available on the device.

```
var isMagnetometerAvailable: Bool { get }
```

## See Also

[`isMagnetometerActive`](/documentation/CoreMotion/CMMotionManager/isMagnetometerActive)

A Boolean value that determines whether magnetometer updates are currently happening.



---

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)