A small template for a project to create macOS applications for placement in the MenuBar (a la System Tray for those coming from the Windows world).
Template includes: Project structure, and small snippets: checking internet access, converting time formats, a mechanism for saving settings, autorun, etc.

Project OOTB content

- Copy the template folder - MenuBarApp.xctemplate to:
~/Library/Developer/Xcode/Templates/YourCategoryDoYouWantAnyName/
- Restart Xcode.
- In Xcode, choose File → New → File…, then select MenuBarApp under macOS and under YourCategoryDoYouWantAnyName section
- Add packages: https://github.com/Krusty84/ElegantTabs https://github.com/sindresorhus/LaunchAtLogin-Modern
LoggerHelper if you need it: https://github.com/Krusty84/LoggerHelper
- Set Yes for "Application is agent (UIElement) aka LSUIElement" in Project/Targets/Info/Custom macOS Application Target Properties
- Check Sandbox Mode (it should be enabled)