Daltron / NotificationBanner

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

The autoDismiss property disables also dismissing on tap and swipe #386

Open hasangyulyustan opened 2 years ago

hasangyulyustan commented 2 years ago

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.

JoeSzymanskiFAN commented 1 year ago

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