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