Daltron / NotificationBanner

The easiest way to display highly customizable in app notification banners in iOS
MIT License
4.78k stars 662 forks source link

StatusBarNotificationBanner onTap not working #397

Open mufumade opened 2 years ago

mufumade commented 2 years ago

I am trying to perform some action after a StatusBarNotificationBanner was tapped. Unfortunately onTap is not triggered.

If I increase the banner height, taps are registered but only up to the statusbar but not in the status bar area. It this expected behavior or is this a bug?

banner.dismissOnSwipeUp = false
banner.dismissOnTap = true
banner.autoDismiss = false
banner.bannerHeight = 200
banner.isUserInteractionEnabled = true
banner.onTap = {
    print("Hello World")
}
banner.show()