Bump danger from 9.3.0 to 9.3.1 (#56)
Bumps danger from 9.3.0 to 9.3.1.
updated-dependencies:
- dependency-name: danger dependency-type: direct:production update-type: version-update:semver-patch …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
StatusItemController
buildMenu() -> NSMenu
leftClickAction()
rightClickAction()
StatusItemController
subclass in yourNSApplicationDelegate
.Requirements
Installation
CocoaPods
Swift Package Manager
Add
StatusItemController
to thedependencies
value of yourPackage.swift
.Alternatively, you can add the package directly via Xcode.
Documentation
You can read the documentation here. Generated with jazzy. Hosted by GitHub Pages.
Notes on Testing
Unfortunately,
StatusItemController
cannot be tested directly. Attempting to create anNSStatusItem
outside of an app context throws an assert, which makes sense. Thus, in order to testStatusItemController
it must be embedded in an app. Tests can be found in the Example App test suite. See #15 for more details.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.