I'm using a WKWebView to load a html resource:
func setUpWebView() {
guard let url = Bundle.main.url(forResource: "random", withExtension: "html") else { return }
let request = URLRequest(url: url)
webView.load(request)
}
The view is uploading the content of the html resource but is not scaled: view
If I do the same with a UIWebView the resource is scaled (but uiwebview is deprecated)
Any idea?
edit1:
webView.contentMode = .scaleToFill
This doesn't help.