From c80d17ceb42f5e0106d6c17a22fe699bfab1ef04 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 8 Sep 2023 16:20:24 +0200 Subject: [PATCH] Fix .locksInBackground AppStorage key (#346) --- Passepartout/App/Constants/Theme.swift | 2 +- Passepartout/App/Views/SettingsView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Passepartout/App/Constants/Theme.swift b/Passepartout/App/Constants/Theme.swift index 9802fc2a..439cdf1b 100644 --- a/Passepartout/App/Constants/Theme.swift +++ b/Passepartout/App/Constants/Theme.swift @@ -491,7 +491,7 @@ extension View { extension View { func themeLockScreen() -> some View { - @AppStorage(AppPreference.locksInBackground.rawValue) var locksInBackground = false + @AppStorage(AppPreference.locksInBackground.key) var locksInBackground = false return LockableView( locksInBackground: $locksInBackground, content: { diff --git a/Passepartout/App/Views/SettingsView.swift b/Passepartout/App/Views/SettingsView.swift index bbe66c61..c0e34cc6 100644 --- a/Passepartout/App/Views/SettingsView.swift +++ b/Passepartout/App/Views/SettingsView.swift @@ -33,7 +33,7 @@ struct SettingsView: View { @Environment(\.presentationMode) private var presentationMode - @AppStorage(AppPreference.locksInBackground.rawValue) private var locksInBackground = false + @AppStorage(AppPreference.locksInBackground.key) private var locksInBackground = false private let versionString = Constants.Global.appVersionString