I'm trying to open SFSafariViewController
with local html but it causes crash.
let vc = SFSafariViewController(url: URL(fileURLWithPath: Bundle.main.path(forResource: "untitled", ofType: "html")!))
vc.delegate = self
self.present(vc, animated: true)
Is there a way to do it? I can see file path when i debugged.
...../Devices/4980A022-975B-47D3-991B-C9741B06A5FB/data/Containers/Bundle/Application/22BFED43-49B2-4EB9-BAC3-BED26440BA52/xxxx-Internal.app/untitled.html