Adds #warning message for AppKit usage.

This commit is contained in:
Stuart Breckenridge 2020-08-10 08:28:17 +08:00
parent 94a9557ba6
commit 88ee63ba68
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ 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: {
Image(systemName: "sidebar.left")