Releases: Daltron/NotificationBanner
Swift 4.2 Support
• Swift 4.2 Support 🎉 🎉 🎉 Thanks @spadafiva!
• Can now remove banners from the banner queue. Thanks @mixo44!
• Better notch support handling for iPhones. Thanks @joseantoniogarciay!
NotificationBanner Release v1.6.1
• Fixed a bug causing notification banners not to auto rotate correctly if their bannerPosition
was .bottom
. Thanks @valexa! 👍 👍 👍
NotificationBanner Release v1.6.0
Multiple Banner Queue Support
By default, each notification banner is placed onto a singleton of an auto-managed NotificationBannerQueue. This allows an infinite amount of banners to be displayed without one hiding the other. If you have multiple controllers within your navigation stack that need to be managed by a seperate queue (like a tab bar controller), simply create an instance of a NotificationBannerQueue and pass it in to the show function:
banner.show(queue: customQueue)
Thanks to @t4ec for the feature request! 👍 👍 👍
NotificationBanner Release v1.5.4
• StatusBarNotificationBanner
's are now 50px tall on iPhone X by default. Thanks @btelintelo! 👍
NotificationBanner Release v1.5.3
• Fixed a bug causing notification banners not to appear correctly on iPhone X's if the navigation bar was hidden. Thanks @pikachu987! 👍 🎉
NotificationBanner Release v1.5.0
Swift 4 Support 🎉 🎉 🎉
NotificationBanner Release v1.4.4
NotificationBanner Release v1.4.2
NotificationCenter Notifications
The following banner related notifications will be posted to NotificationCenter:
BannerNotification.BannerWillAppear
BannerNotification.BannerDidAppear
BannerNotification.BannerWillDisappear
BannerNotification.BannerDidDisappear
The banner object can be retrieved from the notification as follows:
func onBannerNotification(notification: Notification) {
guard let banner = notification.userInfo?[NotificationBanner.BannerObjectKey] as? BaseNotificationBanner else {
return
}
// Do something with the banner
}
NotificationBanner Release v1.4.1
• Can now remove all banners from the NotificationBannerQueue by calling NotificationBannerQueue .default.removeAll()
Closes #44 🎉
Thanks @ashokkumars! 👍
NotificationBanner Release v1.4.0
Changes:
Banners can now be shown from the bottom
If you are wanting to show a banner from the bottom, simply:
banner.show(bannerPosition: .bottom)
All existing properties that the show function takes can be mixed and matched to work flawlessly with each other!
Closes #31 🎉
Thanks @scottcc! 👍
Banner Events
You can choose to opt into a notification banner's events by registering as its delegate:
banner.delegate = self
Then just make sure to implement the following methods:
internal func notificationBannerWillAppear(_ banner: BaseNotificationBanner)
internal func notificationBannerDidAppear(_ banner: BaseNotificationBanner)
internal func notificationBannerWillDisappear(_ banner: BaseNotificationBanner)
internal func notificationBannerDidDisappear(_ banner: BaseNotificationBanner)
Closes #32 🎉
Thanks @Marlon-Monroy! 👍
New CocoaPods Release: v1.4.0 ✅