Questions tagged [sfsafariviewcontrollerdelegate]
9 questions
4
votes
2 answers
SafariViewControllerDidFinish does not fire when swiping down to dismiss
I have a delegate on a SFSafariViewController that does clean up tasks in the safariViewControllerDidFinish event. In iOS 13+, the user is able to swipe down to dismiss, but this event is not fired in that case. I do not want to disable this gesture…

TruMan1
- 33,665
- 59
- 184
- 335
3
votes
0 answers
Target _blank links not opening in SFSafariViewController
I'm using the following code for opening an URL with SFSafariViewController:
import UIKit
import SafariServices
class ViewController: UIViewController, UITextViewDelegate {
override func viewDidLoad() {
super.viewDidLoad()
…

David
- 2,898
- 3
- 21
- 57
3
votes
1 answer
Using Safariservices swift how to code around the small black box
Using SFSafariViewController, works well but for some reason when I go to this webpage [knowitall.ch], it starts up by opening a zoomed view? with a small black box that I need to press to get the full webpage.
My code couldn't be simpler.
if let…

user3069232
- 8,587
- 7
- 46
- 87
2
votes
1 answer
SFSafariViewController notification when token received
Converting the code in the following swift sample to C# (Xamarin) to notify the App when Paypal Token is received inside SFSafariViewController but it does not fire the…

H Y
- 23
- 2
2
votes
1 answer
Is it possible customize SFSafariViewController like edit "Share" button?
Is it possible customize SFSafariViewController like:
- change "Share" button
- or add new button on same toolbar where "Share" and "Compass" buttons are
Any help will be appreciated.

zzheads
- 1,368
- 5
- 28
- 57
1
vote
2 answers
iOS Swift SFSafariViewController update new URL and refresh view
I'm using SFSafariViewController for load weblinks,
In my case first I need to open one URL after some process/time(like 10 sec) I need to update my URL in the same tab and refresh SFSafariViewController.
if let url = URL(string: "Google.com") {
…

Ramprasath Selvam
- 3,868
- 3
- 25
- 41
1
vote
1 answer
Xamarin SFSafariViewController DidFinish not called
I'm trying to use SFSafariViewController and this works just gr8. Browser opens and loads my site. The problem is I'm not able to catch the event when user clicks on 'Done' button. I'm implemeting ISFSafariViewControllerDelegate and exporting…

Daniel Glos
- 87
- 7
0
votes
1 answer
How to selectively open other apps on iOS using UIApplication.shared.open
I have an app that allows users to open URLs. These can be handled via a SafariView, but if an app has registered to handle the URL, I'd like to use:
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:],…

okhobb
- 758
- 8
- 22
0
votes
2 answers
Call SFSafariViewController from UITabBarController and go back after "Done" pressed
I have a custom UITabBarController with custom button. When I click this button I open SFSafariViewController - here all works fine. But when I clicked to "done" button in SFSafariViewController its dismiss. but I can't return to UITabBarController,…

intacto
- 15
- 4