UIApplication.sharedApplication.statusBarHidden=YES;
is deprecated in iOS 13. The compiler says to 'use the statusBarManager property of the window scene instead'.
How/Where do you get the handle to statusBarManager? It's not in UIApplication.sharedApplication.windows.