I\'ve been looking around and wasnt able to see any swift related ways to do this. I\'m trying to get my UIWebViews height to be dynamic. I have a UIWebView that loads data
Use the following code to make your UIWebView height dynamic in Swift 3.x
func webViewDidFinishLoad(_ webView: UIWebView) { let height = webView.scrollView.contentSize.height var wRect = webView.frame wRect.size.height = height webView.frame = wRect }