Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WKWebView vs SFSafariViewController

We have WKWebView in iOS 8 and SFSafariViewController in iOS 9. I know that WKWebView subclasses from UIView, and that SFSafariViewController subclasses from UIViewController.
They are essentially different.


My question is about memory management between these two components.
Quoted from developers at Facebook, Reducing FOOMs in the Facebook iOS app

WKWebView — that actually performs most of its work in a separate process, which means that most web-view-related memory usage would not be attributed to our process.

This helps a lot in preventing our app from being killed because our process consumes a large amount of memory.

Does SFSafariViewController handle web-view-related memory in a separate process like WKWebView?

like image 728
saiday Avatar asked Sep 17 '15 14:09

saiday


1 Answers

Yes, Safari View Controller runs in a separate process from your application. Here's a link to WWDC session.

like image 173
Evgeny Avatar answered Sep 29 '22 06:09

Evgeny