StatusItemController
A "view controller" for menu bar Mac apps
About
This library provides a StatusItemController component that you can use to create menu bar apps, or apps with menu bar items in macOS.
This component is used in Red Eye and Lucifer.
Usage
- Subclass
StatusItemController - Implement the following methods:
buildMenu() -> NSMenuleftClickAction()rightClickAction()
- Create an instance of your
StatusItemControllersubclass in yourNSApplicationDelegate.
Requirements
- macOS 10.12+
- Swift 5.3+
- Xcode 12.0+
- SwiftLint
Installation
Swift Package Manager
Add StatusItemController to the dependencies value of your Package.swift.
dependencies: [
.package(url: "https://github.com/hexedbits/StatusItemController", from: "1.0.0")
]Alternatively, you can add the package directly via Xcode.
Documentation
You can read the documentation here. Generated with jazzy. Hosted by GitHub Pages.
Contributing
Interested in making contributions to this project? Please review the guides below.
Also, consider sponsoring this project or buying my apps!
Credits
Created and maintained by Jesse Squires.
License
Released under the MIT License. See LICENSE for details.
Copyright © 2020-present Jesse Squires.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
