An iOS view controller wrapper for WKWebView
An iOS view controller wrapper for WKWebView.
Since iOS 8, WKWebView is preferred over UIWebView. But unlike UIWebView, WKWebView provide less default behaviors due to the security design. JXWebViewController wrap up a WKWebView and implements a few standard features as iOS Safari does. So web views can be easily used in your apps out-of-the-box. It is also referred to as WebViewController, UIWebViewController or WKWebViewController.
alert
, confirm
and prompt
.mailto
, tel
, itms-apps
and so on.JXWebViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JXWebViewController'
let url = URL(string: "https://example.com/")!
let webViewController = JXWebViewController()
webViewController.webView.load(URLRequest(url: url))
navigationController?.pushViewController(webViewController, animated: true)
webView
property to access the WKWebView instance.webViewConfiguration
property to set up WKWebViewConfiguration before view is loaded.JXWebViewController
subclass which implements or overrides WKNavigationDelegate and WKUIDelegate methods.Jianqiu Xiao, [email protected]
JXWebViewController is available under the MIT license. See the LICENSE file for more info.