I'm using SFSafariViewController for load weblinks,
In my case first I need to open one URL after some process/time(like 10 sec) I need to update my URL in the same tab and refresh SFSafariViewController.
if let url = URL(string: "Google.com") {
let VC= SFSafariViewController(url: url)
VC.delegate = self
self.present(VC, animated: true, completion: nil)
}
There is any way to update The URL and refresh the current SFSafariViewController page?
SFSafariViewController
is specifically designed to present web content that your application cannot interact with. From the documentation:More specifically related to your question, the documentation for
SFSafariViewController
also says:Since you want to control the display of the web content (changing the URL) you should probably use WKWebView.