Changing the status bar background-color and text color on iOS 13

let sharedApplication = UIApplication.shared
sharedApplication.delegate?.window??.tintColor = setYourColor

if #available(iOS 13.0, *) {
let statusBar = UIView(frame: (sharedApplication.delegate?.window??.windowScene?.statusBarManager?.statusBarFrame)!)
statusBar.backgroundColor = setYourColor
sharedApplication.delegate?.window??.addSubview(statusBar)
} else {
// Fallback on earlier versions
sharedApplication.statusBarView?.backgroundColor = setYourColor
}



extension UIApplication {