Михаил Капелько 11 months ago
parent
commit
472af2e766
2 changed files with 6 additions and 5 deletions
  1. +2
    -2
      app/Podfile.lock
  2. +4
    -3
      src/App.swift

+ 2
- 2
app/Podfile.lock View File

@@ -1,6 +1,6 @@
PODS:
- AELog (0.6.3)
- BusX (2024.01.16)
- BusX (2024.01.26)
- MeetupIdX (2023.12.31):
- AELog
- BusX
@@ -34,7 +34,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
AELog: f732b70f7a9d1b4c6a3676304192b3908f362133
BusX: 7c7675152d44023781c7d46cda3617ceee41312f
BusX: cec0d774212a449bed1896ad7d7bb9c4c53e0cbd
MeetupIdX: 2fa9fb27717aa8878ff495c1abe960c96e524308
MicX: 6ffa81f29a477a66cde277e3ade3de8ce2d47b91
MPAKX: dc592434f55edf34709f6e4f37c9ec90dcd95185


+ 4
- 3
src/App.swift View File

@@ -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))")
}
}
}


Loading…
Cancel
Save