not beautiful, but effective:
If you don't want your web browser to scroll at all, you can implement the UIWebView UIScrollViewDelegate and set the contentOffset to 0 on scrollViewDidScroll
aWebView.scrollView.delegate = self func scrollViewDidScroll(scrollView: UIScrollView) { scrollView.contentOffset = CGPointMake(0, 0) }
source share