When I just return to a viewController from a viewController that has a prefersStatusBarHidden() = true I get this black stripe under the nav-bar.
After a second the nav-bar realigns itself as per my second image bellow.
Is there a way to avoid that black stripe from happening in Swift?