Skip to content

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).

License

Notifications You must be signed in to change notification settings

Krusty84/Xcode-MenuBarApp-SwiftUI-macOS-ProjectTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Xcode-MenuBarApp-SwiftUI-macOS-ProjectTemplate

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.

image

Project OOTB content

image

Installation

  1. Copy the template folder - MenuBarApp.xctemplate to:
    ~/Library/Developer/Xcode/Templates/YourCategoryDoYouWantAnyName/
    
  2. Restart Xcode.
  3. In Xcode, choose File → New → File…, then select MenuBarApp under macOS and under YourCategoryDoYouWantAnyName section

Setting up the created project

  1. Add packages: https://github.com/Krusty84/ElegantTabs https://github.com/sindresorhus/LaunchAtLogin-Modern

LoggerHelper if you need it: https://github.com/Krusty84/LoggerHelper

  1. Set Yes for "Application is agent (UIElement) aka LSUIElement" in Project/Targets/Info/Custom macOS Application Target Properties
  2. Check Sandbox Mode (it should be enabled)

About

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).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published