Setting SwiftUI View as NSMenuBarItem view property

后端 未结 0 708
再見小時候
再見小時候 2020-12-21 19:06

I am writing a MacOS Menubar app and I want to assign a SwiftUI view as the NSMenuItem view. Here the current code, but this results in the menu item being hidden.

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题