|
@@ -12,8 +12,10 @@ struct Content: View { |
|
|
@StateObject var adates = BusUI.Value(Mic.K.activityDates, [String: Date]()) |
|
|
@StateObject var adates = BusUI.Value(Mic.K.activityDates, [String: Date]()) |
|
|
|
|
|
|
|
|
func val(_ k: String) -> String { |
|
|
func val(_ k: String) -> String { |
|
|
let dt = adates.v[k] ?? .distantPast |
|
|
|
|
|
return String(describing: Int(dt.timeIntervalSince1970)) |
|
|
|
|
|
|
|
|
if let dt = adates.v[k] { |
|
|
|
|
|
return String(describing: Int(dt.timeIntervalSince1970)) |
|
|
|
|
|
} |
|
|
|
|
|
return "N/A" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var body: some View { |
|
|
var body: some View { |
|
@@ -113,6 +115,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate |
|
|
func testMic4() { |
|
|
func testMic4() { |
|
|
delayedSend(2, Mic.K.activeIds, ["1"]) |
|
|
delayedSend(2, Mic.K.activeIds, ["1"]) |
|
|
delayedSend(5, Mic.K.activeIds, ["1", "4"]) |
|
|
delayedSend(5, Mic.K.activeIds, ["1", "4"]) |
|
|
|
|
|
delayedSend(11, Mic.K.activeIds, ["3", "4"]) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func delayedSend( |
|
|
func delayedSend( |
|
|