I have been endlessly searching for an answer for this that works. I am trying to create a very simple WKWebView application to wrap out web app. I don\'t need anything fanc
let screenWidth = UIScreen.main.bounds.width
let screenHeight = UIScreen.main.bounds.height
self.webView = WKWebView(frame:CGRect( x: 0, y:UIApplication.shared.statusBarFrame.size.height, width:screenWidth, height: screenHeight ), configuration: WKWebViewConfiguration() )
make sure to import UIKit. compatible to all the devices no status bar issues