magnetometerData
The latest sample of magnetometer data.
Declaration
var magnetometerData: CMMagnetometerData? { get }Discussion
If no magnetometer data is available, the value of this property is nil. An app that is receiving magnetometer data after calling startMagnetometerUpdates() periodically checks the value of this property and processes the magnetometer data.