Removes #warning
(Also .preferredColorScheme(AppDefaults.userInterfaceColorScheme) is still needed on macOS Settings)
This commit is contained in:
parent
cd20632b5d
commit
36acd84c14
@ -110,6 +110,7 @@ struct MainApp: App {
|
||||
}
|
||||
.tag(MacPreferencePane.advanced)
|
||||
}
|
||||
.preferredColorScheme(AppDefaults.userInterfaceColorScheme)
|
||||
.frame(width: 500)
|
||||
.padding()
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user