アプリ内のWebViewでiOSのSafariとクッキーやウェブサイトのデータを共有したり,オートフィル,リーダー表示機能をつけたりできるみたい.
ログイン状態をSafariからアプリのWebViewに引き継ぐことが可能になる.ユーザーからは引き継ぐかどうか選べないけども.
SFSafariViewController for iOS
You can use SFSafariViewController to display web content within your app. The Safari View Controller shares cookies and other website data with Safari, and has many of Safari's features, like Safari AutoFill and Safari Reader. Unlike Safari itself, the Safari View Controller UI is tailored for displaying a single page, featuring a Done button that'll take users right back where they were in your app.
Consider replacing your WKWebView or UIWebView-based browsers with SFSafariViewController if your app displays web content but does not customize that content.
Safari Services Framework
The Safari Services framework (SafariServices.framework) includes the following enhancement.
SFSafariViewController can be used to display web content within your app. It shares cookies and other website data with Safari, and has many of Safari's great features, such as Safari AutoFill and Safari Reader. Unlike Safari itself, the SFSafariViewController UI is tailored for displaying a single page, featuring a Done button that takes users back to where they were in your app.
If your app displays web content, but does not customize that content, consider replacing your WKWebView or UIWebView-based browsers with SFSafariViewController.
Twitterクライアントとか,ニュース系,RSSリーダー,あとで読む系のアプリで,リンクをリーダービューで表示できるようになるとうざい広告とか排除できて良さそう.
あと,個人的にはリーダービューで表示した内容をAppleWatchに転送したいと思ったけど,このサイズで読み続けるのはしんどいか...
entersReaderIfAvailable
って引数があるから事前に有効にすることができそう.
let vc = SFSafariViewController(URL: url, entersReaderIfAvailable: true)