WKWebView.setMagnification?

I'm using a WKWebView to display some HTML that I need to share between an iOS and an Android app. Nothing funcitonal, I just need the page rendered. Since it appears so small on the screen I want to magnifiy the web view. The docs (https://developer.apple.com/documentation/webkit/wkwebview)

indicate I can scale the view with the magnification settings, but XCode says those methods don't exist.


Is my approach wrong?


Best,

John

Replies

The magnification settings are only available on macOS.


Not sure if it works, but you might try using the WKWebView's scroll view.


webView.scrollView.zoomScale = 2.0