|
|
@@ -11,8 +11,9 @@ struct Content: View { |
|
|
|
|
|
|
|
@StateObject var adates = BusUI.Value(Mic.K.activityDates, [String: Date]()) |
|
|
|
|
|
|
|
func val(_ k: String) -> Date { |
|
|
|
adates.v[k] ?? .distantPast |
|
|
|
func val(_ k: String) -> String { |
|
|
|
let dt = adates.v[k] ?? .distantPast |
|
|
|
return String(describing: Int(dt.timeIntervalSince1970)) |
|
|
|
} |
|
|
|
|
|
|
|
var body: some View { |
|
|
@@ -33,7 +34,7 @@ struct Content: View { |
|
|
|
.padding() |
|
|
|
List { |
|
|
|
ForEach(ids, id: \.self) { |
|
|
|
Text("\($0): \(val($0).timeIntervalSince1970)") |
|
|
|
Text("\($0): \(val($0))") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|