Skip to content

Screen flashes black while opening with TabBarCoordinator #245

@SubvertDev

Description

@SubvertDev

Hi, I've got an issue that I can't eventually figure out.

I'm using TabBarCoordinator as a starting point in my app, but right after startup my screen flashes black for a second.
I've tried solutions from #172, but none of them did help me, except injecting custom UITabBarController with it's view.backgroundColor set to .systemBackground. But if I do that my tab bar flashes for a second too because it's translucent and tries to mimic it's background, so I need to disable translucency in my custom tab bar which I don't really want to do.

It's easily reproducible with demo app by changing router in AppDelegate to HomeTabBarCoordinator(), for a more visible result you can inject custom tab bar with background color set to red into that coordinator.

Did I do something wrong and how do I fix that? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions