WKWebView vs SFSafariViewController

We have WKWebViewin iOS 8 and SFSafariViewControlleriOS 9. I know what WKWebViewsubclasses are from UIViewand what SFSafariViewControllersubclasses are from UIViewController.
They are significantly different.


My question is about memory management between these two components.
Quote from the developers on Facebook, FOOM Reduction in iOS app for Facebook

WKWebView - in fact, does most of its work in a separate process, which means that most memory usage using a web view will not be assigned to our process.

This helps a lot in preventing the killing of our application, because our process consumes a large amount of memory.

Does SFSafariViewController support web-related memory in a separate process such as WKWebView?

+4
source share
1 answer

Yes, Safari View Controller is launched by a separate process from your application. Here is a link to a WWDC session .

+2
source

Source: https://habr.com/ru/post/1607834/


All Articles