An open API service indexing awesome lists of open source software.

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

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.

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

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)