Skip to content

Releases: danielsaidi/SystemNotification

0.5.2

06 Jul 10:37
Compare
Choose a tag to compare

This release fixes compile errors on tvOS and watchOS.

0.5.1

06 Jul 10:37
Compare
Choose a tag to compare

This release makes configuration properties mutable.

0.5.0

21 Jan 12:00
Compare
Choose a tag to compare

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 new iconTextSpacing and titleTextSpacing 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 the SystemNotification-based extension.

0.4.3

15 Sep 15:19
Compare
Choose a tag to compare

✨ New features

  • SystemNotificationConfiguration has a new isSwipeToDismissEnabled parameter.
  • SystemNotification can now be swiped to be dismissed, if isSwipeToDismissEnabled is true.

0.4.2

13 Sep 18:11
Compare
Choose a tag to compare

This relase makes it possible to provide a nil title to SystemNotificationMessage.

0.4.1

13 Sep 18:10
Compare
Choose a tag to compare

This relase makes it possible to use plain String values when creating SystemNotification and SystemNotificationMessage.

0.4.0

04 Aug 21:38
Compare
Choose a tag to compare

✨ 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

15 Jun 22:56
Compare
Choose a tag to compare

This version fixes a preview bug that caused the library not to build for macOS.

0.3.1

08 Jun 08:54
Compare
Choose a tag to compare

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.

0.3.0

04 Jun 19:11
Compare
Choose a tag to compare

This release has some breaking name changes and makes it easier to present multiple notifications with a single modifier.

✨ New features

  • SystemNotificationContext makes it easy to present multiple notifications with a single modifier.

💥 Breaking changes

  • SystemNotification.Configuration has been renamed to SystemNotificationConfiguration
  • SystemNotificationMessage.Configuration has been renamed to SystemNotificationMessageConfiguration