How to change the status bar background color and text color on iOS 13?
You can add some conditions or use first one. Just create some extension for UIApplication. extension UIApplication { var statusBarUIView: UIView? { if #available(iOS 13.0, *) { let tag = 38482 let keyWindow = UIApplication.shared.windows.filter {$0.isKeyWindow}.first if let statusBar = keyWindow?.viewWithTag(tag) { return statusBar } else { guard let statusBarFrame = keyWindow?.windowScene?.statusBarManager?.statusBarFrame else { return … Read more