Swiftpack.co - bugkingK/StatusIconManager as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by bugkingK.
bugkingK/StatusIconManager 1.0.0
Put icons in the status bar quickly and easily.
⭐️ 2
🕓 2 years ago
macOS
.package(url: "https://github.com/bugkingK/StatusIconManager.git", from: "1.0.0")

StatusIconManager

Put icons in the status bar quickly and easily.

The StatusIconDelegate allows you to track open and close. It also supports Rx.

Preview

Using

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) {
    
}

License

StatusIconManager is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 2
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Release Notes

🎉 StatusIconManager!
2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics