NotificationBanner

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

MIT License

Stars
4.7K
Committers
76

Bot releases are hidden (Show)

NotificationBanner - 3.2.0 Latest Release

Published by Daltron almost 2 years ago

  • Dynamic Island Support
NotificationBanner - Release v3.1.0

Published by Daltron over 2 years ago

NotificationBanner - Release v3.0.6

Published by Daltron over 3 years ago

โ€ข SPM 3.0.6 Support

NotificationBanner - SPM v3.0.4 Release

Published by Daltron over 4 years ago

NotificationBanner - Release v3.0.0

Published by Daltron about 5 years ago

Official iOS 13 Support and Stacked Banners ๐ŸŽ‰ ๐ŸŽ‰๐ŸŽ‰

โ€ข Fixed issue on all banner types where the banner would be covered up by the status bar on all non notch devices. It appears the status bar can no longer be directly hidden in iOS 13 anymore.

โ€ข A huge shoutout to all who who contributed to iOS 13 support

  • @ashleyevans
  • @igorkulman
  • @rolandkakonyi

โ€ข An even larger shoutout to @mrsnow-git who implemented stacked banners! ๐Ÿ‘ ๐Ÿ‘

NotificationBanner - Release v2.5.0

Published by Daltron over 5 years ago

โ€ข FloatingNotificationBanner's now support custom views
โ€ขย All notification banners now have a transparency property that can be changed to give them a new sleek look

NotificationBanner - Swift 5 Release

Published by Daltron over 5 years ago

NotificationBanner -

Published by Daltron over 5 years ago

NotificationBanner - Release v2.0.0

Published by Daltron almost 6 years ago

Changes

โ€ข Added a new banner type FloatGrowingNotificationBanner . (Huge thanks to @mrsnow-git! ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ )
โ€ข Added a function to reset a banner's elapsed duration to zero. (Thanks @ecastillo! ๐Ÿ‘)
โ€ข Fixed an issue within the NotificationBannerUtilities class. (Thanks @Lausbert! ๐Ÿ‘)
โ€ข Updated podspec to use SnapKit 4.2.0. (Thanks @anelad! ๐Ÿ‘)

NotificationBanner - Release v1.8.0

Published by Daltron almost 6 years ago

GrowingNotificationBanner

A HUGE thanks to @forceunwrap for implementing this feature! ๐ŸŽ‰ ๐ŸŽ‰ ๐ŸŽ‰

NotificationBanner - Swift 4.2 Support

Published by Daltron about 6 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!

NotificationBanner - NotificationBanner Release v1.6.1

Published by Daltron over 6 years ago

โ€ขย Fixed a bug causing notification banners not to auto rotate correctly if their bannerPosition was .bottom. Thanks @valexa! ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘

NotificationBanner - NotificationBanner Release v1.6.0

Published by Daltron over 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! ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘

NotificationBanner - NotificationBanner Release v1.5.4

Published by Daltron almost 7 years ago

โ€ข StatusBarNotificationBanner's are now 50px tall on iPhone X by default. Thanks @btelintelo! ๐Ÿ‘

NotificationBanner - NotificationBanner Release v1.5.3

Published by Daltron almost 7 years ago

โ€ข Fixed a bug causing notification banners not to appear correctly on iPhone X's if the navigation bar was hidden. Thanks @pikachu987! ๐Ÿ‘ ๐ŸŽ‰

NotificationBanner - NotificationBanner Release v1.5.0

Published by Daltron about 7 years ago

Swift 4 Support ๐ŸŽ‰ ๐ŸŽ‰ ๐ŸŽ‰

NotificationBanner - NotificationBanner Release v1.4.4

Published by Daltron about 7 years ago

โ€ข iPhoneX is now supported

Closes #49 ๐ŸŽ‰
Thanks @JoniVR! ๐Ÿ‘

NotificationBanner - NotificationBanner Release v1.4.2

Published by Daltron about 7 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
}
NotificationBanner - NotificationBanner Release v1.4.1

Published by Daltron about 7 years ago

โ€ข Can now remove all banners from the NotificationBannerQueue by calling NotificationBannerQueue .default.removeAll()

Closes #44 ๐ŸŽ‰
Thanks @ashokkumars! ๐Ÿ‘

NotificationBanner - NotificationBanner Release v1.4.0

Published by Daltron over 7 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! ๐Ÿ‘

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 โœ…

Package Rankings
Top 0.44% on Cocoapods.org
Top 5.47% on Carthage
Badges
Extracted from project README
GitHub contributors License PayPal Q - Talk About Music VH Dispatch Stikkr CardCast Happy Scale Wanderings Modern Magic 8 Ball Envision: Habits Tracker TSUM RIS LukaPizza
Related Projects