mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Use preferredColorScheme modifier instead of environment key
This commit is contained in:
parent
c339124703
commit
54d1d64e0e
@ -13,7 +13,7 @@ struct WriteFreely_MultiPlatformApp: App {
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView(postStore: store, preferences: preferences)
|
||||
.environment(\.colorScheme, preferences.preferredColorScheme)
|
||||
.preferredColorScheme(preferences.preferredColorScheme)
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
|
Loading…
Reference in New Issue
Block a user