I used VNDocumentCameraViewController for scanning a document.Whenever open a scanned images and then click the 'Done' button ,application got crashed.
Crash log:
*** Assertion failure in -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3898.7/UIApplication.m:5237
2019-07-19 18:05:41.369581+0530 Doc-Scan Swift[398:76718] *** 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.'