mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Adds #warning message for AppKit usage.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user