I’ve been playing around with embedding WebViews in native apps for some time now, but I’ve never managed to get to them to a point where I’d be happy to use them in an app people would actually use. The bad reputation is justified – aside from anything else, they’re just slow.
It isn’t finished yet.
to put the HTML in the webview. That will work. But it still won’t load any external files, like JS or CSS.
You can, as I did, go further down the rabbit hole and embed your CSS and JS in-page, have everything work and then discover that remote requests have weird character set issues, or that WKWebView has no applicationCache functionality. As best I can tell, the more you work with it, the more issues you’ll discover that will hold you back.
So don’t use it for app views yet.
At least, that’s my recommendation anyway. For opening web content in modal views, sure. To integrate with your app? No. There are too many unknown caveats and undocumented issues. You would think that the inability to load local files would have been a notable enough problem that it would be fixed in iOS 8.1, but no dice.
I’m still optimistic, and I hope that in time WKWebView will be the saviour we’ve all been waiting for. But it isn’t yet.