I have some custom animation in my project that I'd rather keep, but when navigating back from another view the animation occurs before my own animations causing a clunky delay. I have a solution for my custom views like this.
self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Back", style: .plain, target: self, action: #selector(backTapped))
@objc func backTapped() {
navigationController?.popViewController(animated: false)
}
However, I'm not sure if I can override the back button from SFSafariViewController. Is this possible, or do I need to move onto custom webviews and handle the code there?