I am currently updating our iTunes application and want to use the new SFSafariViewController api. The use case is extremely simple, when the user opens the application, the application automatically loads the set URL into the SFSafariViewController.
This seems to be limited to tutorials, and those that exist are linked to IBActions via links when the application is open.
How to automatically open a link in SFSafariViewController when a user clicks an application on their device?
The following code contains only white pages:
import UIKit import SafariServices class ViewController: UIViewController { private var urlString:String = "https://example.com" override func viewDidLoad() { super.viewDidLoad()
---- Work Code ----
import UIKit import SafariServices class ViewController: UIViewController { private var urlString:String = "https://example.com" override func viewDidLoad() { super.viewDidLoad()
source share