Reputation: 601
I have made an app in xcode with swift 3 but the page content is not scrolling. Here is the code
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let url = URL(string: "https://www.website.com");
let response = URLRequest(url: url!)
webView.loadRequest(response)
webView.scalesPageToFit = true
webView.isUserInteractionEnabled = true
webView.scrollView.isScrollEnabled = true
}
Here is the settings screenshot https://www.dropbox.com/s/hckond368czbk0c/Screenshot%202017-03-22%2022.49.09.png?dl=0
Upvotes: 1
Views: 697
Reputation: 99
I rewrote your code but everything works perfectly. Try restarting xcode
Upvotes: 1