TheBoringWorkerNotifier is a Swift library for BoringNotch and TheBoringWorkeres that provides a simple interface for managing distributed notifications in macOS applications. It allows you to easily post notifications and set up observers for various system events.
- Easy-to-use interface for posting distributed notifications
- Pre-defined notification types for common events
- Simple observer setup for handling notifications
Add the following line to your Package.swift
file's dependencies:
.package(url: "https://github.com/TheBoredTeam/TheBoringWorkerNotifier.git", from: "1.0.0")
Then, include it in your target dependencies:
.target(name: "YourTarget", dependencies: ["TheBoringWorkerNotifier"]),
import TheBoringWorkerNotifier
let notifier = TheBoringWorkerNotifier()
notifier.postNotification(name: "theboringteam.theboringworker.togglemic", userInfo: ["key": "value"])
notifier.setupObserver(notification: notifier.toggleMicNotification) { notification in
// Handle the notification
print("Mic toggle notification received")
}
toggleMicNotification
toggleHudReplacementNotification
showClipboardNotification
sneakPeakNotification
micStatusNotification
We welcome contributions to TheBoringWorkerNotifier! Here's how you can help:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and commit them with a clear commit message
- Push your changes to your fork
- Submit a pull request to the main repository
Please ensure that your code follows the existing style and includes appropriate tests.
To run the tests for TheBoringWorkerNotifier, use the following command in the project directory:
swift test
TheBoringWorkerNotifier is released under the MIT License. See the LICENSE file for details.
If you have any questions, issues, or suggestions, please open an issue on the GitHub repository.