Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flicker on first show #432

Open
yellow8-vom opened this issue Oct 15, 2024 · 1 comment
Open

Flicker on first show #432

yellow8-vom opened this issue Oct 15, 2024 · 1 comment

Comments

@yellow8-vom
Copy link

yellow8-vom commented Oct 15, 2024

I show FloatingNotificationBanner like this (cfr code)
The first time a banner is shown, there is a flicker.
Happens on iOS 17 & 18 (I don't know for earlier versions of iOS).
I use the latest version of this package.
I tried this partially related solution, without success: #424

static func showSuccessBanner(title: String, subtitle: String) {
    DispatchQueue.main.async {
        let banner = FloatingNotificationBanner(title: title,
                                                subtitle: subtitle,
                                                titleFont: UIFont.systemFont(ofSize: 14.0, weight: .semibold),
                                                subtitleFont: UIFont.systemFont(ofSize: 12.0),
                                                style: .success
        )
        banner.backgroundColor = .systemGreen
        banner.haptic = .none
        // Show the banner
        banner.show(cornerRadius: 12.0)
    }        
}

Am I doing something wrong? It did not happen before (this issue started quite a long time ago, but before there was no issue).

@yellow8-vom
Copy link
Author

Am I the only one encountering this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant