Fix .locksInBackground AppStorage key (#346)

This commit is contained in:
Davide De Rosa 2023-09-08 16:20:24 +02:00 committed by GitHub
parent b4b2db176c
commit c80d17ceb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ extension View {
extension View { extension View {
func themeLockScreen() -> some View { func themeLockScreen() -> some View {
@AppStorage(AppPreference.locksInBackground.rawValue) var locksInBackground = false @AppStorage(AppPreference.locksInBackground.key) var locksInBackground = false
return LockableView( return LockableView(
locksInBackground: $locksInBackground, locksInBackground: $locksInBackground,
content: { content: {

View File

@ -33,7 +33,7 @@ struct SettingsView: View {
@Environment(\.presentationMode) private var presentationMode @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 private let versionString = Constants.Global.appVersionString