title: How to disable horizontal scrolling in webView with swift?
body: <p>I have a simple <code>webView</code> like :</p>
  
  <pre><code>@IBOutlet weak var webView: UIWebView!
  override func viewDidLoad() {
      super.viewDidLoad()
  
      let url = "https://developer.apple.com/library/mac/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html#//apple_ref/doc/uid/TP40014097-CH5-XID_456"
      let requestURL = NSURL(string:url)
      let request = NSURLRequest(URL: requestURL!)
      webView.loadRequest(request)
  </code></pre>
  
  <p>when I load this request into webView it loads perfectly fine but when Its load completely It scroll horizontally like this when I scroll it from left side and right side:</p>
  
  <p><img src="https://i.stack.imgur.com/H4FzX.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/WkePz.png" alt="enter image description here"></p>
  
  <p>I don't want to scroll it this way and I only want it to scroll vertically is there any way to do it in swift I search on Internet but only found solution for objective-c and I try this in swift but not working.</p>
  
  <p>Please provide me any solution for this.</p>