Questions tagged [sfsafariviewcontroller]

Controller which allow you to present web content within the app.

The new SFSafariViewController class enables you to deliver interactive web content in your app just like Safari, including the key Safari UI elements already familiar to your users. See how to easily bring Safari features like Reader and AutoFill into your app, and provide a great web viewing experience with fewer lines of code.

309 questions
0
votes
2 answers

How do I make WKWebView full screen like the SFSafariViewController?

I have a TableView that contains a list of web urls. I'd like to open a browser that navigates to the url that is selected, but with some custom functionality. When I use the SFSafariViewController, I get the full-screen browser. However, when I use…
gsamerica
  • 153
  • 1
  • 3
  • 18
0
votes
1 answer

How to dismiss a SFSafariViewController in swift

I've a function which instantiate and show a SFSafariViewController which shows a login page public func authorizeSafariEmbedded(from controller: UIViewController, at url: URL) throws -> SFSafariViewController { safariViewDelegate =…
0
votes
0 answers

Pull-to-dismiss with a SFSafariViewController contained in a modal UINavigationController?

I have a UINavigationController presented in a .pageSheet style, which may contain a SFSafariViewController. Other ViewControllers presented in the UINavigationController automatically handle the pull-to-dismiss interaction, but…
David Liu
  • 9,426
  • 5
  • 40
  • 63
0
votes
2 answers

How to get the text from SafariViewController to our application swift?

In my application, we are using Segpay for payment there is no proper SDK to integrate, then we make the URL from backed and open that in SafariViewController. When the user completes the payment successfully we need to bring to a user into the home…
0
votes
0 answers

Xamarin iOS: How can one open SFSafariViewController using NSUrlSessionMultipathServiceType.Handover

I have a Xamarin application that primarily connects with local WIFI router (without internet access) to communicate with some local hardware devices. And for some features, the app uses NSUrlSessionMultipathServiceType.Handover (mobile's cellular…
Pawan Pillai
  • 1,955
  • 5
  • 37
  • 64
0
votes
1 answer

Camera/Photo Library permission to upload image inside SFSafariViewController

My app uses SFSafariViewController and eventually the user will upload some images. Should I add camera/photo library permission?
Erick Filho
  • 1,962
  • 3
  • 18
  • 31
0
votes
1 answer

Hide controls in sfsafariviewcontroller

let sfViewController = SFSafariViewController(url: url) sfViewController.delegate = self self.ViewC!.present(sfViewController, animated: false, completion: nil) I am opening a SFSafariViewController in my app. But for the security issue I do not…
RateM
  • 241
  • 1
  • 4
  • 15
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,…
0
votes
1 answer

Webkit vs SFSafariViewController and Core Data

Which is the most preferred method for an in-app web browser? My app has the need to have a toolbar at the bottom, and I need to be able to take screenshots of visited web pages by hitting a button on the toolbar. Here is what I'm running into. I…
Nutrion
  • 53
  • 1
  • 9
0
votes
1 answer

How to prevent dismissal of UITabBarController by pushed SFSafariViewController?

I'm pushing SFSafariViewController into UITabBarController. But clicking on the Safari Done button dismisses the UITabBarController. How to prevent it?
0
votes
1 answer

How to set a custom font for controls in SFSafariViewController?

I haven't seen any ways to customize SFSafariViewController besides color, so I was wondering if anyone found a workaround, specifically for the font of the controls. (Swift 4, iOS 12, etc.)
Luke Redmore
  • 449
  • 3
  • 10
0
votes
1 answer

How to get SFSafariViewController back to work?

I want to open a URL in the SFSafariViewController but it says that the URL is nil although it is not nil. let userURL = self.user?.url let url = URL(string: "https://www.\(userURL))") print(userURL) …
0
votes
1 answer

Is it normal for SFSafariViewController to "forget" visited links after being dismissed?

I develop a mobile app using SFSafariViewController to present a website, wherein visited links are styled using the CSS :visited pseudo-class (https://developer.mozilla.org/en-US/docs/Web/CSS/:visited). As long as the user remains within a single…
Isaac16
  • 59
  • 2
  • 7
0
votes
1 answer

Customise SafariViewController with APPAUTH swift

I am learning ios development with swift and i am implementing Authentication using the appauth pod. My question would be : Is it possible to customise the safariviewcontroller used to login? Are there some samples with swift? Thanks
0
votes
1 answer

chrome custom tabs not redirecting back to hybrid app

Am trying to use integrate oauth in my Hybrid app and am using angularjs 1 with cordova. I tried using this plugin https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller along…