ComposableCoreLocation Documentation

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.

%3 Heading Heading Hashable Hashable Heading->Hashable

Conforms To

Hashable

Initializers

init(raw​Value:​)

@available(iOS 3, macCatalyst 13, watchOS 2, *)
  @available(macOS, unavailable)
  @available(tvOS, unavailable)
  public init(rawValue: CLHeading)  

init(heading​Accuracy:​magnetic​Heading:​timestamp:​true​Heading:​x:​y:​z:​)

public init(
    headingAccuracy: CLLocationDirection,
    magneticHeading: CLLocationDirection,
    timestamp: Date,
    trueHeading: CLLocationDirection,
    x: CLHeadingComponentValue,
    y: CLHeadingComponentValue,
    z: CLHeadingComponentValue
  )  

Properties

heading​Accuracy

public var headingAccuracy: CLLocationDirection

magnetic​Heading

public var magneticHeading: CLLocationDirection

timestamp

public var timestamp: Date

true​Heading

public var trueHeading: CLLocationDirection

x

public var x: CLHeadingComponentValue

y

public var y: CLHeadingComponentValue

z

public var z: CLHeadingComponentValue