From 7c02ab755d7e70632cb6db2e9c84fbebe8754876 Mon Sep 17 00:00:00 2001 From: Joel-David <4586209+joeldavidw@users.noreply.github.com> Date: Wed, 24 Jul 2024 20:12:58 +0700 Subject: [PATCH] default PASSWORD_REMINDER_ENABLED to true (#44) --- Chronos/App/MainAppView.swift | 2 +- Chronos/App/Misc/PasswordReminder.swift | 2 +- Chronos/App/Tabs/Settings/SettingsTab.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Chronos/App/MainAppView.swift b/Chronos/App/MainAppView.swift index 01928c9..d9aca75 100644 --- a/Chronos/App/MainAppView.swift +++ b/Chronos/App/MainAppView.swift @@ -18,7 +18,7 @@ struct MainAppView: View { @AppStorage(StateEnum.ICLOUD_SYNC_LAST_ATTEMPT.rawValue) var iCloudSyncLastAttempt: TimeInterval = 0 @AppStorage(StateEnum.NEXT_PASSWORD_REMINDER_TIMESTAMP.rawValue) var nextPasswordReminderTimestamp: TimeInterval = 0 @AppStorage(StateEnum.BIOMETRICS_AUTH_ENABLED.rawValue) var biometricsEnabled: Bool = false - @AppStorage(StateEnum.PASSWORD_REMINDER_ENABLED.rawValue) private var statePasswordReminderEnabled: Bool = false + @AppStorage(StateEnum.PASSWORD_REMINDER_ENABLED.rawValue) private var statePasswordReminderEnabled: Bool = true private let stateService = Container.shared.stateService() diff --git a/Chronos/App/Misc/PasswordReminder.swift b/Chronos/App/Misc/PasswordReminder.swift index 275956d..c643bf1 100644 --- a/Chronos/App/Misc/PasswordReminder.swift +++ b/Chronos/App/Misc/PasswordReminder.swift @@ -12,7 +12,7 @@ struct PasswordReminderView: View { @FocusState private var focusedField: FocusedField? - @AppStorage(StateEnum.PASSWORD_REMINDER_ENABLED.rawValue) private var statePasswordReminderEnabled: Bool = false + @AppStorage(StateEnum.PASSWORD_REMINDER_ENABLED.rawValue) private var statePasswordReminderEnabled: Bool = true @AppStorage(StateEnum.NEXT_PASSWORD_REMINDER_TIMESTAMP.rawValue) var nextPasswordReminderTimestamp: TimeInterval = 0 let cryptoService = Container.shared.cryptoService() diff --git a/Chronos/App/Tabs/Settings/SettingsTab.swift b/Chronos/App/Tabs/Settings/SettingsTab.swift index 379c9da..5f60b9d 100644 --- a/Chronos/App/Tabs/Settings/SettingsTab.swift +++ b/Chronos/App/Tabs/Settings/SettingsTab.swift @@ -14,7 +14,7 @@ struct SettingsTab: View { @AppStorage(StateEnum.ICLOUD_BACKUP_ENABLED.rawValue) private var isICloudEnabled: Bool = false @AppStorage(StateEnum.ICLOUD_SYNC_LAST_ATTEMPT.rawValue) private var iCloudSyncLastAttempt: TimeInterval = 0 - @AppStorage(StateEnum.PASSWORD_REMINDER_ENABLED.rawValue) private var statePasswordReminderEnabled: Bool = false + @AppStorage(StateEnum.PASSWORD_REMINDER_ENABLED.rawValue) private var statePasswordReminderEnabled: Bool = true @AppStorage(StateEnum.NEXT_PASSWORD_REMINDER_TIMESTAMP.rawValue) var nextPasswordReminderTimestamp: TimeInterval = 0 @AppStorage(StateEnum.TAP_TO_REVEAL_ENABLED.rawValue) private var stateTapToRevealEnabled: Bool = false