Status Bar icon and menu with SwiftUI on macOS

I would like to use SwiftUI to create an application on macOS that starts only with a Status Bar icon. So my app needs a few things:
  • Does NOT start with a window

  • Adds an icon to the Status Bar

  • The Status Bar icon will display a menu with a set of commands.

Thanks in advance for any help.

Any update on how to do this?

Status Bar icon and menu with SwiftUI on macOS
 
 
Q