From 0904ff519f79b435a04b57da426280687f1603e6 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 15 Jul 2020 11:16:16 +0800 Subject: [PATCH] moves preferredColorScheme to App level. --- Multiplatform/Shared/MainApp.swift | 1 + Multiplatform/macOS/Preferences/MacPreferencesView.swift | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Multiplatform/Shared/MainApp.swift b/Multiplatform/Shared/MainApp.swift index 0b5a0f893..4ea2bb381 100644 --- a/Multiplatform/Shared/MainApp.swift +++ b/Multiplatform/Shared/MainApp.swift @@ -79,6 +79,7 @@ struct MainApp: App { .frame(width: 500) .navigationTitle("Preferences") .environmentObject(defaults) + .preferredColorScheme(AppDefaults.userInterfaceColorScheme) } #endif diff --git a/Multiplatform/macOS/Preferences/MacPreferencesView.swift b/Multiplatform/macOS/Preferences/MacPreferencesView.swift index 1bc3cabcb..cb7585b42 100644 --- a/Multiplatform/macOS/Preferences/MacPreferencesView.swift +++ b/Multiplatform/macOS/Preferences/MacPreferencesView.swift @@ -82,7 +82,6 @@ struct MacPreferencesView: View { } } } - .preferredColorScheme(AppDefaults.userInterfaceColorScheme) } }