Releases: danielsaidi/SystemNotification
0.5.3
💡 Behavior changes
SystemNotificationContext
present now has an optional configuration.SystemNotificationContext
now uses its own configuration if none is provided.
0.5.2
This release fixes compile errors on tvOS and watchOS.
0.5.1
This release makes configuration properties mutable.
0.5.0
This release greatly improves how notifications are presented and dismissed and simplifies usage.
The demo app now uses a local package, which makes it a lot easier to develop the library.
📖 Documentation
SystemNotification has a brand new DocC documentation.
Due to the new documentation, the package now requires Swift 5.5.
✨ New features
SystemNotificationContext
has a new completion-based dismiss function.SystemNotificationMessageConfiguration
has newiconTextSpacing
andtitleTextSpacing
properties.SystemNotificationUIKitOverlay
is a new view that simplifies adding a system notification to a UIKit view.View+SystemNotification
has a new parameter-based extension that replaces the old notification-based one.
💡 Behavior changes
SystemNotificationMessageConfiguration
is adjusted to make a message look more like an iPhone system notification.- Presenting a new notification first dismisses the current notification, if any.
- The auto-dismiss logic is moved from the system notification to the notification context.
🐛 Bug fixes
- This version fixes a bug, where the message configuration padding was incorrectly applied.
🗑 Deprecated
- The notification-based
systemNotification(:)
function is deprecated.
💥 Breaking changes
SystemNotification+Message
has been deprecated.SystemNotificationConfiguration
minWidth
is no longer used and has been removed.View+SystemNotification
has deprecated theSystemNotification
-based extension.
0.4.3
✨ New features
SystemNotificationConfiguration
has a newisSwipeToDismissEnabled
parameter.SystemNotification
can now be swiped to be dismissed, ifisSwipeToDismissEnabled
istrue
.
0.4.2
This relase makes it possible to provide a nil
title to SystemNotificationMessage
.
0.4.1
This relase makes it possible to use plain String
values when creating SystemNotification
and SystemNotificationMessage
.
0.4.0
✨ New features
- The context-based view modifier no longer requires a
context
parameter name.
🗑 Deprecated
- systemNotification(context:) is deprecated.
🐛 Bug fixes
- This version fixes a bug, where the configuration duration wasn't applied.
- This version fixes a bug, where the default dark mode background was transparent.
0.3.2
This version fixes a preview bug that caused the library not to build for macOS.
0.3.1
Thanks to Christian Mitteldorf, system notifications now use localized string keys, which makes it super simple to create localized notifications. The demo is updated with an example.