Menu access from NSStatusItem (Menu Bar) Application in Swift
<p>I'm creating an application where a menubar seems to be the most convenient way to have the user's desktop clean without a window. I've seen many tutorials online and on stack overflow but they seem to be only for Objective-C. I only use Swift. If you don't know what a menubar is, they're these icons:</p>

<p><a href="https://i.stack.imgur.com/0OSVx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0OSVx.png" alt="enter image description here"></a></p>

<p>I would like my app to have one of these instead of a constant full window. And if I can, how can I have a button on my menubar that brings up the window. Lastly, how can I have my icon not show, but I still have the finder advantages. (Like File, Edit..). For example,</p>

<p><a href="https://i.stack.imgur.com/zK52B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zK52B.png" alt="enter image description here"></a></p>

<p>I have already tried to put</p>

<pre><code>Application is Agent (UIElement) to False
</code></pre>

<p>in my Info.plist but that also takes away my finder advantages.</p>