Skip to content

Commit

Permalink
Call cancel handler if user taps SFViewController X before page load …
Browse files Browse the repository at this point in the history
…completes (#398)
  • Loading branch information
julianlocke authored Jan 18, 2024
1 parent 8d87041 commit 9190036
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ public class MobileSafariViewController: SFSafariViewController, SFSafariViewCon
public func safariViewController(_ controller: SFSafariViewController, didCompleteInitialLoad didLoadSuccessfully: Bool) {
if !didLoadSuccessfully {
controller.dismiss(animated: true, completion: nil)
cancelHandler()
}
}

Expand Down

0 comments on commit 9190036

Please sign in to comment.