SpeedLimitViewModel
public final class SpeedLimitViewModel : ObservableObject, Equatable
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init(speedThreshold: Measurement<UnitSpeed>)
-
Declaration
Swift
public init( speed: Measurement<UnitSpeed>, speedLimit: Measurement<UnitSpeed>? = nil, speedThreshold: Measurement<UnitSpeed> )
-
Declaration
Swift
public init( speed: Measurement<UnitSpeed>, speedLimit: Measurement<UnitSpeed>? = nil, speedThreshold: Measurement<UnitSpeed>, speedUnit: UnitSpeed )
-
Declaration
Swift
@Published public var speed: Measurement<UnitSpeed> { get set }
-
Declaration
Swift
@Published public var speedLimit: Measurement<UnitSpeed>? { get set }
-
Declaration
Swift
@Published public var isVisible: Bool { get set }
-
Declaration
Swift
@Published public var speedUnit: UnitSpeed { get set }
-
Declaration
Swift
public static func == (lhs: SpeedLimitViewModel, rhs: SpeedLimitViewModel) -> Bool
-
Declaration
Swift
public func reset()