NotificationBanner
NotificationBanner copied to clipboard
The autoDismiss property disables also dismissing on tap and swipe
The autoDismiss property disables also dismissing on tap and swipe. It would be better to have option to have infinite banner which will be dismissible on tap or swipe.
I hit this issue previously and in looking at the code, realized that you can restore the expected behavior, you just have to do it manually:
banner.autoDismiss = false
// autoDismiss = true implicitly disables user initiated dismissing, so those actions need to be
// explicitly re-enabled to work as expected.
banner.dismissOnTap = true
banner.dismissOnSwipeUp = true