Skip to content

Flicker on first show #432

@yellow8-vom

Description

@yellow8-vom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions