NotificationBanner icon indicating copy to clipboard operation
NotificationBanner copied to clipboard

StatusBarNotificationBanner onTap not working

Open mufumade opened this issue 3 years ago • 0 comments

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()

mufumade avatar Sep 29 '22 19:09 mufumade