Put icons in the status bar quickly and easily.
The StatusIconDelegate allows you to track open and close. It also supports Rx.
let sb = NSStoryboard(name: "Main", bundle: .main)
let vc = sb.instantiateController(withIdentifier: "ViewController") as? NSViewController
StatusIconManager.shared.set(icon: .init(named: "icon-status"), viewController: vc)
func statusView(didOpen: StatusIconManager, item: NSStatusItem) {
}
func statusView(didClose: StatusIconManager, item: NSStatusItem) {
}
StatusIconManager is available under the MIT license. See the LICENSE file for more info.