After updating to iOS 10 and Swift 3 my webViews are not working. In the debug area is the following. It happens on device or in the simulator. Does anyone know what is causing this.
2017-05-23 20:04:19.453057-0500 AppName[394:32639] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2017-05-23 20:04:19.453481-0500 AppName[394:32639] WF: _WebFilterIsActive returning: NO
I was having the same problem when I try to play a vimeo video in a UIWebView in IOS 10. In my case I was setting the HTML of the UIWebView in
viewDidLayoutSubviews()
.I solved the problem by putting this code in the
viewDidLoad()