Releases: BlueHuskyStudios/BezelNotification
Releases · BlueHuskyStudios/BezelNotification
2.1 • Updating material to modern APIs
2.0 • Swift Package!
It's now a Swift Package! Should be usable like any other; just include this as any other Swift Package and follow the README for in-code usage.
This is versioned 2.0.0
because it moves files around in a way incompatible with previous intended usage as a Git submodule, and because of that, We took the opportunity to rename BHBezelNotification
to just BezelNotification
A good start
The first release does a good job at mimicking the bezel notifications shown by Apple apps, with a couple extra customizations thrown in
Features
- Shows a bezel notification the same size and position as the system standard ones
Required:
- Accepts any string as the message text (but long ones get cut off)
Optional:
- [encouraged] Accepts an
NSImage
as the icon (will be resized down if it's too large) - Allows "Short", "Long", "Forever" time-to-live, as well as a custom exact number of seconds
- Accepts a
TimeInterval
number of seconds for the length of the fade-in and fade-out animations (separately) - Accepts a
NSColor
as a tint (will be modified to not be overbearing) - Accepts a
NSColor
as the message text color (will be modified to be slightly vibrant) - Accepts a
NSFont
as the message text font - Accepts a
CGFloat
for the radius of the rounded corners (Non-positives and non-reals are undefined behavior)