ViewModel
final class ViewModel : Sendable
Undocumented
-
Undocumented
Declaration
Swift
init( name: String, timestamp: Date, gaugeID: PersistentIdentifier, sync: Bool = true, onPress: @escaping (PersistentIdentifier) -> Void)
-
Undocumented
Declaration
Swift
var syncing: Bool { get set }
-
Undocumented
Declaration
Swift
var latestHeightReading: GaugeReading? { get set }
-
Undocumented
Declaration
Swift
var latestDischargeReading: GaugeReading? { get set }
-
Undocumented
Declaration
Swift
var updatedAt: Date? { get set }
-
Undocumented
Declaration
Swift
let name: String
-
Undocumented
Declaration
Swift
weak var gauge: Gauge? { get set }
-
Undocumented
Declaration
Swift
func onAppear()
-
Undocumented
Declaration
Swift
func handlePress()
-
Undocumented
Declaration
Swift
func getLatestReadings()
-
Undocumented
Declaration
Swift
func syncGauge()