moves preferredColorScheme to App level.

This commit is contained in:
Stuart Breckenridge 2020-07-15 11:16:16 +08:00
parent d8c5d3719c
commit 0904ff519f
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
2 changed files with 1 additions and 1 deletions

View File

@ -79,6 +79,7 @@ struct MainApp: App {
.frame(width: 500)
.navigationTitle("Preferences")
.environmentObject(defaults)
.preferredColorScheme(AppDefaults.userInterfaceColorScheme)
}
#endif

View File

@ -82,7 +82,6 @@ struct MacPreferencesView: View {
}
}
}
.preferredColorScheme(AppDefaults.userInterfaceColorScheme)
}
}