xkcd-Open-Source
xkcd-Open-Source copied to clipboard
Switch to an SFSafariViewController where available
The current web view has several glitches, and the SFSafariViewController class is designed to eliminate app designers from the burden of creating an in-app browser:
If your app lets users view websites from anywhere on the Internet, use the
SFSafariViewControllerclass. If your app customizes, interacts with, or controls the display of web content, use theWKWebViewclass.1
However, it is only available in iOS 9+.