Returns the magnetic field measured by the magnetometer.
- iOS 5.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- watchOS 2.0+
- Core Motion
The value of this property is the total magnetic field observed by the device which is equal to the Earth’s geomagnetic field plus bias introduced from the device itself and its surroundings.
This is the “raw” magnetic-field value, unlike the calibrated value of the
magnetic property of
CMDevice which filters out the bias introduced by the device and, in some cases, its surrounding fields.