SFSafariController loads URL fine in simulator but leaves a blank screen on device

Home / Uncategorized / SFSafariController loads URL fine in simulator but leaves a blank screen on device

Question:
So I’m using SFSafariController to load up an URL downloaded from cloudkit, like so.
if let yelpurl = detail.value(forKey: "Yelp") as? String
{

let url = URL(string: (yelpurl))
let safari = SFSafariViewController(url: url!, entersReaderIfAvailable: false)
safari.delegate = self as? SFSafariViewControllerDelegate
self.present(safari, animated: true, completion: {

})
} else {
}

}
The code itself is fine – no errors, pulls up the yelp page URL and loads it up in an SFSafariController in simulator, but on my device, I am left with a white blank screen. What is causing this disparity and how can I correct this on device?

To add, the plist still stands without any modification.


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *