Structure
Heading
public struct Heading: Hashable
A value type wrapper for CLHeading
. This type is necessary so that we can do equality checks
and write tests against its values.
Relationships
Conforms To
Hashable
Initializers
init(rawValue:)
@available(iOS 3, macCatalyst 13, watchOS 2, *)
@available(macOS, unavailable)
@available(tvOS, unavailable)
public init(rawValue: CLHeading)
init(headingAccuracy:magneticHeading:timestamp:trueHeading:x:y:z:)
public init(
headingAccuracy: CLLocationDirection,
magneticHeading: CLLocationDirection,
timestamp: Date,
trueHeading: CLLocationDirection,
x: CLHeadingComponentValue,
y: CLHeadingComponentValue,
z: CLHeadingComponentValue
)
Properties
headingAccuracy
public var headingAccuracy: CLLocationDirection
magneticHeading
public var magneticHeading: CLLocationDirection
timestamp
public var timestamp: Date
trueHeading
public var trueHeading: CLLocationDirection
x
public var x: CLHeadingComponentValue
y
public var y: CLHeadingComponentValue
z
public var z: CLHeadingComponentValue