Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is WKWebView designed as a replacement of UIWebView?

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?

like image 501
mm24 Avatar asked Mar 27 '15 14:03

mm24


People also ask

What is the difference between UIWebView and 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.

Is UIWebView deprecated?

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.

When was UIWebView 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.

Is WKWebView same as Safari?

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.


1 Answers

According to Xcode 9, UIWebView is deprecated. 🤷‍♂️

Xcode 9

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

like image 94
Zelko Avatar answered Sep 21 '22 17:09

Zelko