How to change the status bar background color and text color on iOS 13?
问题 With the arrival of iOS 13 statusBar's view is no longer accessible trough: value(forKey: "statusBar") as? UIView Due to: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.' But it's not clear how it should be used for changing colours as keyWindow?