https://github.com/krusty84/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).
https://github.com/krusty84/xcode-menubarapp-swiftui-macos-projecttemplate
macos project-template project-templates swiftui xcode xcode-template xcode-templates
Last synced: 17 days ago
JSON representation
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).
- Host: GitHub
- URL: https://github.com/krusty84/xcode-menubarapp-swiftui-macos-projecttemplate
- Owner: Krusty84
- License: mit
- Created: 2025-05-18T20:23:31.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-05-19T20:04:40.000Z (10 months ago)
- Last Synced: 2025-06-27T00:39:57.004Z (9 months ago)
- Topics: macos, project-template, project-templates, swiftui, xcode, xcode-template, xcode-templates
- Homepage:
- Size: 306 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.

Project OOTB content

## 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
2. Set **Yes** for "**Application is agent (UIElement) aka LSUIElement**" in *Project/Targets/Info/Custom macOS Application Target Properties*
3. Check **Sandbox Mode** (it should be enabled)