From 982520683cb4c6b2138b3948bce05f2d235c15e1 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 11 Feb 2025 14:18:35 +0100 Subject: [PATCH] Adds last sync date in the debug view --- PadelClub/Views/Navigation/Toolbox/DebugSettingsView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PadelClub/Views/Navigation/Toolbox/DebugSettingsView.swift b/PadelClub/Views/Navigation/Toolbox/DebugSettingsView.swift index 246c3a7..0fb469c 100644 --- a/PadelClub/Views/Navigation/Toolbox/DebugSettingsView.swift +++ b/PadelClub/Views/Navigation/Toolbox/DebugSettingsView.swift @@ -16,6 +16,7 @@ struct DebugSettingsView: View { LabeledContent("Has Websocket Manager", value: self._hasWebSocketManager) LabeledContent("Websocket ping", value: self._wsPingStatus) LabeledContent("Websocket failure", value: self._wsFailure) + LabeledContent("Last sync date", value: self._lastSyncDate) } Section("Settings") { @@ -66,6 +67,9 @@ struct DebugSettingsView: View { fileprivate var _hasWebSocketManager: String { return "\(StoreCenter.main.hasWebSocketManager)" } + fileprivate var _lastSyncDate: String { + return "\(StoreCenter.main.lastSyncDate)" + } } //#Preview {