Conceptually in lens c you have to do as shown below.
Two things: Make sure you have these properties:
self.webView.scalesPageToFit = YES; self.webView.contentMode = UIViewContentModeScaleAspectFit;
And finally, calculate the height of the contents of webView as: - webView.isLoading is one of the most important properties. In fact, in one call to the web url, it is called several times.
- (void)webViewDidFinishLoad:(UIWebView *)webView{ if (webView.isLoading == NO)
This is how you should calculate the height of the web view.
you can look here, since WKWebView has no deletion, which you can use to get the content size instead of KVO:
KVO Example Maybe this will help you more!
source share