TAG

Safari

  • December 4, 2020
  • July 29, 2021

Which class we should use? WKWebView or SFSafariViewController

UIWebViewClass was deprecated and we need to replace it with WKWebView or SFSafariViewController. Which class we should use? I think we use WKWebView normally, but SFSafariViewController has enough functionality in some case. Requirements It is decided which class can be used by requirements. You want to do something just before or after loading pages. You want to know the URL of loading pages. You want to execute JavaScript on loaded pages. If you want to do above, you need to use WKWebView. SFSafariViewController can not do above. Requirements are really needed? “We want to do something just after loading pages.”. […]