NotificationBanner Versions Save

The easiest way to display highly customizable in app notification banners in iOS

1.7.0

5 years ago

• Swift 4.2 Support 🎉 🎉 🎉 Thanks @spadafiva! • Can now remove banners from the banner queue. Thanks @mixo44! • Better notch support handling for iPhones. Thanks @joseantoniogarciay!

1.6.1

6 years ago

• Fixed a bug causing notification banners not to auto rotate correctly if their bannerPosition was .bottom. Thanks @valexa! 👍 👍 👍

1.6.0

6 years ago

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! 👍 👍 👍

1.5.4

6 years ago

StatusBarNotificationBanner's are now 50px tall on iPhone X by default. Thanks @btelintelo! 👍

1.5.3

6 years ago

• Fixed a bug causing notification banners not to appear correctly on iPhone X's if the navigation bar was hidden. Thanks @pikachu987! 👍 🎉

1.5.0

6 years ago

Swift 4 Support 🎉 🎉 🎉

1.4.4

6 years ago

• iPhoneX is now supported

Closes #49 🎉 Thanks @JoniVR! 👍

1.4.2

6 years ago

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
}

1.4.1

6 years ago

• Can now remove all banners from the NotificationBannerQueue by calling NotificationBannerQueue .default.removeAll()

Closes #44 🎉 Thanks @ashokkumars! 👍

1.4.0

6 years ago

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! 👍

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 ✅