Removes #warning

(Also .preferredColorScheme(AppDefaults.userInterfaceColorScheme) is still needed on macOS Settings)
This commit is contained in:
Stuart Breckenridge 2020-08-10 08:50:46 +08:00
parent cd20632b5d
commit 36acd84c14
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
2 changed files with 1 additions and 1 deletions

View File

@ -110,6 +110,7 @@ struct MainApp: App {
}
.tag(MacPreferencePane.advanced)
}
.preferredColorScheme(AppDefaults.userInterfaceColorScheme)
.frame(width: 500)
.padding()
}

View File

@ -104,7 +104,6 @@ struct SceneNavigationView: View {
#if os(macOS)
ToolbarItem(placement: .navigation) {
Button {
#warning("Use of AppKit in SwiftUI.")
NSApp.keyWindow?.firstResponder?.tryToPerform(#selector(NSSplitViewController.toggleSidebar(_:)), with: nil)
} label: {
AppAssets.sidebarToggleImage