We just updated our app on iOS 13, and app get crashed. Actually we are trying to get window object through statusBarWindow but at this point app get crashed and showing following error in log section.
static var sb: UIWindow? {
// We use a non-public key here to obtain the `statusBarWindow` window.
// We have been using it in real world app and it won't be rejected by the review team for using this key.
let s = "status", b = "Bar", w = "Window"
return UIApplication.shared.value(forKey: s+b+w) as? UIWindow
}
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.'
Its clearly shows that we cannot use statusBarWindow
instead we should use statusBarManager
But I am unable to find how to use statusBarManager
Object