ComposableCoreMotion Documentation

Structure Magnetometer​Data

public struct MagnetometerData: Hashable  

Measurements of the Earth's magnetic field relative to the device.

See the documentation for CMMagnetometerData for more info.

%19 MagnetometerData MagnetometerData Hashable Hashable MagnetometerData->Hashable

Conforms To

Hashable

Initializers

init(_:​)

public init(_ magnetometerData: CMMagnetometerData)  

init(magnetic​Field:​timestamp:​)

public init(
      magneticField: CMMagneticField,
      timestamp: TimeInterval
    )  

Properties

magnetic​Field

public var magneticField: CMMagneticField

timestamp

public var timestamp: TimeInterval

Methods

hash(into:​)

public func hash(into hasher: inout Hasher)  

Operators

==

public static func == (lhs: Self, rhs: Self) -> Bool