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
3
votes
1 answer

Safari View Controller URL/Navigation box (text field) color

Preface: I'm using SFSafariViewController to login to Steam. I'm trying to customise the SFSafariViewController. What I've got so far: I'm developing the app for iOS 10, which allows both preferredControlTintColorand preferredBarTintColor. As…
an23lm
  • 376
  • 2
  • 15
3
votes
0 answers

How to open YouTube links in SafariController instead of the YouTube App in iOS in Swift

In iOS9 i want to open a youtube channel link in SFSafariViewController . If My mobile not having Youtube Application everything Working fine . The Problem is when i install youtube application i cant go forward because manually added…
3
votes
2 answers

Safari view controller

I am new in iOS app development. Currently, I am working on a project which requires the interaction between the app and webpage. I know I can use safari view controller to load a web page within the app, and use done button at the right up corner…
Shalina Hu
  • 31
  • 1
  • 4
3
votes
0 answers

SFSafariViewController and handoff

In the app that I'm working on whenever I present a SFSafariViewController it doesn't show the handoff icon on my Mac. Although it does appear for other apps that use that controller. Are there any additional steps needed to get this to work?
Sergey Katranuk
  • 1,162
  • 1
  • 13
  • 23
3
votes
1 answer

How do I use SFSafariViewController with a dark theme like this user?

I saw in a screenshot to a StackOverflow question that a user presented a darkened SafariViewController: https://stackoverflow.com/a/36099965/998117 How is this accomplished? I can't seem to get it to take effect using UIAppearance.
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
3
votes
0 answers

iOS SFSafariViewController And Javascript

In a traditional UIWebview, we can easily inject javascript into the web page loaded within the web view. Is there a way to do this in SFSafariViewController? SFSafariViewController works great for my needs because it can access cookies and I need…
Jesse
  • 2,674
  • 6
  • 30
  • 47
3
votes
1 answer

WKWebView WebGL performance is lower than Safari

I'm trying to show this stream in my app using WKWebView, but the frame rate is less than 1 FPS. Stream is using webGL. When I open the same stream in Safari, it works beautifully. I'm planning to use SFSafariViewController and insert it as subview…
Heisenbug
  • 951
  • 6
  • 25
3
votes
1 answer

Exchanging data from SFSafariViewController to Native App Interface

I am working on a stuff which requires the data to be shared between the SafariViewController and native ios interface. I know how to do it in the UIWebView but here there is some complication to understand how to do it using the…
Akhilesh Sharma
  • 1,580
  • 1
  • 17
  • 29
3
votes
0 answers

Safari View Controller with Tab Bar

I want to add a tab to my tab based swift application that open a safari view controller and unwinds to the previous tab when "Done" is tapped. After many attempts to search this on google I have not found a solution. Can anyone help?
3
votes
2 answers

iOS 9 - hide toolbar at bottom of web page loaded via SFSafariViewController

I am attempting to hide the navigation toolbar(go back and forward, open in safari ...) that appears at the bottom of a page that loads a URL using the SFSafariViewController. I tried setting the following property on the navigation controller but…
user4321945
  • 93
  • 2
  • 9
3
votes
2 answers

FBSDK FBSDKLoginManager and SFSafariViewController won't close

I'm working with the latest FBSDK, using the FBSDKLoginManager to login. I have it all working, but one thing I cannot figure out is why SFSafariViewController is completely unresponsive after the login redirect? Here's code: - (void)…
gngrwzrd
  • 5,902
  • 4
  • 43
  • 56
3
votes
1 answer

SFSafariViewController OAuth implementation

In the apple WWDC 2015-504, the SFSafariViewController has been announced. Ricky Mondello claimed that the new secure, stable, and fast embedded Safari browser is capable of creating authentication flows, with two easy steps, passing though…
user3223843
  • 375
  • 2
  • 9
2
votes
0 answers

Swift YouTube video in Full Screen & Auto Play with SFSafariViewController

Problem: I would like SFSafariViewController to autoplay a YouTube video in full screen. Code: import SafariServices @objc func handleYTTap(_ sender: UIGestureRecognizer) { let youtubeVideoURL = "https://youtu.be/d9MyW72ELq0" …
2
votes
0 answers

iOS - in app with SFSafariViewController unable to load another host in iframe

I am trying to load the host1 page, it contains iframe and the URL for the iframe is host2. But iframe with URL host2 is not loading properly. I am loading host1 page through SFSafariViewController. If I load the same thing with the iPhone safari…
Anjaneyulu Battula
  • 1,910
  • 16
  • 33
2
votes
0 answers

MSAL authentication with WKWebView or SFSafariViewController on iOS 13/14 (Connect Native and WebView to SSO authentication)

Scenario: Application open and user sign in with MSAL thru ASWebAuthenticationSession, or custom WKWebView. webViewParamaters?.webviewType = .authenticationSession after that, I have the access token and can GET data. When I open WKWebView or…