I'm having some issues with rendering a multi paged pdf in the WkWebView.
If it's a single page it looks fine. But the first page of any multiple page PDF looks bad. I can't figure out why.
I load the request like this
wkWebView.load(URLRequest(url: request as! URL))
I keep a wkWebView inside a another view and to avoid a scroll in scroll (there is a reason for this I know how scrollView works) I then set the height of the wWebView and it's scrollView to the same height as the contentSize.
wkWebView.frame.size.height = wkWebView.scrollView.contentSize.height
wkWebView.frame.size.width = UIScreen.main.bounds.width
wkWebView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
wkWebView.scrollView.delegate = self