SendableCLLocation

public struct SendableCLLocation : Sendable, CustomStringConvertible, CustomDebugStringConvertible

A thread-safe, sendable representation of CLLocation. This struct is designed to encapsulate the key properties of CLLocation while ensuring it is safe to use in concurrent and isolated execution contexts.

Properties

  • The latitude of the location.

    Declaration

    Swift

    public let latitude: Double
  • The longitude of the location.

    Declaration

    Swift

    public let longitude: Double
  • The altitude of the location in meters.

    Declaration

    Swift

    public let altitude: Double
  • The horizontal accuracy of the location in meters.

    Declaration

    Swift

    public let horizontalAccuracy: Double
  • The vertical accuracy of the location in meters.

    Declaration

    Swift

    public let verticalAccuracy: Double
  • The timestamp when the location was determined.

    Declaration

    Swift

    public let timestamp: Date
  • The course of the device in degrees relative to true north.

    • Range: 0.0 - 359.9 degrees (0 being true north). Negative if course is invalid.

    Declaration

    Swift

    public let course: Double
  • The accuracy of the course measurement in degrees.

    Declaration

    Swift

    public let courseAccuracy: Double
  • The speed of the device in meters per second.

    Declaration

    Swift

    public let speed: Double
  • The accuracy of the speed measurement in meters per second.

    Declaration

    Swift

    public let speedAccuracy: Double

Initialization

CustomStringConvertible

  • Returns a user-friendly string representation of the location.

    Declaration

    Swift

    public var description: String { get }

CustomDebugStringConvertible

  • Returns a detailed string representation for debugging.

    Declaration

    Swift

    public var debugDescription: String { get }

Conversion Extensions