How do I dismiss a floating banner programmatically within the viewcontroller? As the following gets called within a function, I'm unable to reference banner.dismiss() in a different function:
let banner = FloatingNotificationBanner(title: title, subtitle: subtitle, style: .warning) banner.autoDismiss = false banner.show(bannerPosition: .bottom, on: self)
How do I dismiss a floating banner programmatically within the viewcontroller? As the following gets called within a function, I'm unable to reference
banner.dismiss()
in a different function:let banner = FloatingNotificationBanner(title: title, subtitle: subtitle, style: .warning) banner.autoDismiss = false banner.show(bannerPosition: .bottom, on: self)