How to create a pop up menu which will be opened by clicking on the Safari App Extension Icon on the toolbar?

I have been working on porting a Chrome Extension to Safari. I've read a lot of forums here on this topic. But I couldn't find the answer to my question about how we can create a pop-up menu that can be opened by clicking on the Extension's Icon in the Safari. I have read in older posts here that it is not possible in Safari App Extension, but I was wondering has this feature been introduced lately in Safari App Extensions. If it is, can anyone direct me to where I can find the documentation so that I can build a popup UI?


Also, I know it is not in the title, but what is the best resource to learn enough Swift to make a Safari App Extension.


Thanks!

Replies

When you say a pop-up menu, do you mean a native NSMenu?


Showing an NSMenu directly isn't supported currently, but you could create a popover that looks like an NSMenu.


Please file feedback on what you'd like to do with this, as it is feedback we've had requested before.


Thanks!