{"id":13461954,"url":"https://github.com/hexedbits/StatusItemController","last_synced_at":"2025-03-24T23:32:01.836Z","repository":{"id":41869013,"uuid":"251708621","full_name":"hexedbits/StatusItemController","owner":"hexedbits","description":"A \"view controller\" for menu bar Mac apps","archived":false,"fork":false,"pushed_at":"2024-02-14T20:20:18.000Z","size":595,"stargazers_count":68,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-17T09:48:09.672Z","etag":null,"topics":["mac-app","macos","menubar","menubar-app"],"latest_commit_sha":null,"homepage":"https://hexedbits.github.io/StatusItemController/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexedbits.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-03-31T19:22:38.000Z","updated_at":"2024-11-19T19:10:29.000Z","dependencies_parsed_at":"2024-01-09T22:47:22.221Z","dependency_job_id":"66f509be-346b-40b6-b78d-fe1b1f5dac4a","html_url":"https://github.com/hexedbits/StatusItemController","commit_stats":{"total_commits":103,"total_committers":4,"mean_commits":25.75,"dds":0.5242718446601942,"last_synced_commit":"60d1ae605fe6a531c9dafadee1e363d780cb75c2"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexedbits%2FStatusItemController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexedbits%2FStatusItemController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexedbits%2FStatusItemController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexedbits%2FStatusItemController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexedbits","download_url":"https://codeload.github.com/hexedbits/StatusItemController/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372193,"owners_count":20604487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mac-app","macos","menubar","menubar-app"],"created_at":"2024-07-31T12:00:36.139Z","updated_at":"2025-03-24T23:32:01.226Z","avatar_url":"https://github.com/hexedbits.png","language":"Swift","readme":"# StatusItemController  [![CI](https://github.com/hexedbits/StatusItemController/workflows/CI/badge.svg)](https://github.com/hexedbits/StatusItemController/actions)\n\n*A \"view controller\" for menu bar Mac apps*\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fhexedbits%2FStatusItemController%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/hexedbits/StatusItemController) \u003cbr\u003e [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fhexedbits%2FStatusItemController%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/hexedbits/StatusItemController)\n\n## About\n\nThis library provides a `StatusItemController` component that you can use to create menu bar apps, or apps with menu bar items in macOS.\n\nThis component is used in [Red Eye](https://www.hexedbits.com/redeye/) and [Lucifer](https://www.hexedbits.com/lucifer/).\n\n## Usage\n\n1. Subclass `StatusItemController`\n1. Implement the following methods:\n    1. `buildMenu() -\u003e NSMenu`\n    1. `leftClickAction()`\n    1. `rightClickAction()`\n1. Create an instance of your `StatusItemController` subclass in your `NSApplicationDelegate`.\n\n## Requirements\n\n- macOS 11.0+\n- Swift 5.9+\n- Xcode 15.0+\n- [SwiftLint](https://github.com/realm/SwiftLint)\n\n## Installation\n\n### [CocoaPods](http://cocoapods.org)\n\n````ruby\npod 'StatusItemController', '~\u003e 2.0.0'\n````\n\n### [Swift Package Manager](https://swift.org/package-manager/)\n\nAdd `StatusItemController` to the `dependencies` value of your `Package.swift`.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/hexedbits/StatusItemController\", from: \"2.0.0\")\n]\n```\n\nAlternatively, you can add the package [directly via Xcode](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).\n\n## Documentation\n\nYou can read the [documentation here](https://hexedbits.github.io/StatusItemController). Generated with [jazzy](https://github.com/realm/jazzy). Hosted by [GitHub Pages](https://pages.github.com).\n\n## Notes on Testing\n\nUnfortunately, `StatusItemController` cannot be tested directly. Attempting to create an `NSStatusItem` _outside_ of an app context throws an assert, which makes sense. Thus, in order to test `StatusItemController` it must be embedded in an app. Tests can be found in the Example App test suite. See [#15](https://github.com/hexedbits/StatusItemController/issues/15) for more details.\n\n## Contributing\n\nInterested in making contributions to this project? Please review the guides below.\n\n- [Contributing Guidelines](https://github.com/hexedbits/.github/blob/main/CONTRIBUTING.md)\n- [Code of Conduct](https://github.com/hexedbits/.github/blob/main/CODE_OF_CONDUCT.md)\n- [Support and Help](https://github.com/hexedbits/.github/blob/main/SUPPORT.md)\n- [Security Policy](https://github.com/hexedbits/.github/blob/main/SECURITY.md)\n\nAlso consider [sponsoring this project](https://github.com/sponsors/jessesquires) or [buying my apps](https://www.hexedbits.com)! ✌️\n\n## Credits\n\nCreated and maintained by [**Jesse Squires**](https://www.jessesquires.com).\n\n## License\n\nReleased under the MIT License. See `LICENSE` for details.\n\n\u003e **Copyright \u0026copy; 2020-present Jesse Squires.**\n","funding_links":["https://github.com/sponsors/jessesquires"],"categories":["UI"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexedbits%2FStatusItemController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexedbits%2FStatusItemController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexedbits%2FStatusItemController/lists"}