Asking this questions as I am not sure why Apple introduced WKWebView without deprecating UIWebView. It is important to have an idea as I am programming a large code base and need to make an informed / fact based decision.
Are there any reason for which we may have to expect both classes to co-exist in the future and none get deprecated?
Is WKWebView purely designed for speed performance (using JIT) and will likely to serve only for certain use cases?
Current limitations of WKWebView:
https://mail.mozilla.org/pipermail/mobile-firefox-dev/2014-December/000993.html
How can I retrieve a file using WKWebView?
Difference Between UIWebview and WKWebViewUIWebview is a part of UIKit, so it is available to your apps as standard. You don't need to import anything, it will we there by default. But WKWebView is run in a separate process to your app,. You need to import Webkit to use WKWebView in your app.
Apple is phasing out UIWebView, which is used by developers for integrating web content into an app in a quick and secure manner. Apple is replacing UIWebView (and WebView) with WKWebView, an updated version, as UIWebView has been deprecated.
New apps containing these frameworks are no longer accepted by the App Store. And last year, we announced that the App Store will no longer accept app updates containing UIWebView as of December 2020.
WKWebView - This view allows developers to embed web content in your app. You can think of WKWebView as a stripped-down version of Safari. It is responsible to load a URL request and display the web content. WKWebView has the benefit of the Nitro JavaScript engine and offers more features.
According to Xcode 9, UIWebView
is deprecated. 🤷♂️
And a documentation message reads:
Legacy UIWebView for support of older macOS platforms. Prefer using WKWebView if possible.
Updated: UIWebView is deprecated for real now in iOS 12. https://developer.apple.com/documentation/uikit/uiwebview
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With