Михаил Капелько hace 10 meses
padre
commit
472af2e766
Se han modificado 2 ficheros con 6 adiciones y 5 borrados
  1. +2
    -2
      app/Podfile.lock
  2. +4
    -3
      src/App.swift

+ 2
- 2
app/Podfile.lock Ver fichero

@@ -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 Ver fichero

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


Cargando…
Cancelar
Guardar