1

I have look made some search, however could not find any information. Question is pretty straight-forward. I don't know if it is possible, but, in this link they could create a NSMenu item via xib files. So I thought maybe it is possible to create NSMenu using SwiftUI as well.

4

1 回答 1

-1

我的答案是SwiftUI使用NSHostingView. 苹果文档

我可以分享该片段,但可能需要一些时间,因为我没有随身携带包含该项目的笔记本电脑。

于 2020-10-26T15:15:12.203 回答