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
1
vote
0 answers

How to access Safari browser Reader Mode content from my Safari Extension?

Background I am developing a Safari Web Extension and need to do following (simplified): Initiate action from extension popup. Extract main text from the opened web page. Process the text in the cloud. Update DOM with processed text. Current…
1
vote
0 answers

SFSafariViewController crash

My iOS app crashes when I try to open url with SFSafariViewController. I use Sentry for logging and unfortunately it does not tell much about the crash: EXC_BREAKPOINT pas_segregated_size_directory I can't reproduce the crash. The code is very…
Levan Karanadze
  • 739
  • 1
  • 11
  • 21
1
vote
1 answer

SFSafariViewController - How to change the color of the address bar and tab menu

How to change the color of the address bar and tab menu in SwiftUi 3.0 using SFSafariViewController. I've tried various things, but that colour doesn't render itself in the simulator. ContentView import SwiftUI import SafariServices …
Miodrag
  • 13
  • 2
1
vote
1 answer

Is it possible to automatically accept Popups in SFSafariViewController?

I need to display a website in SFSafariViewController in an iPad app. The website (an SAP Analytics Cloud Site) continuously asks the user for showing a Popup for authentication and although the toggles in the device's preferences are already set to…
emmics
  • 994
  • 1
  • 11
  • 29
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") { …
1
vote
1 answer

How to close SFSafariviewcontroller once we get openurl in SwiftUI iOS?

I am working on SwiftUI app where i am navigating to SFSafariviewcontroller (Browser) and once login complete I am getting openurl. I want close SFSafariviewcontroller automatically once I get openurl. Thank You for help...below is my work //how I…
Rahul
  • 537
  • 1
  • 7
  • 19
1
vote
1 answer

Deep linking is not working in SwiftUI iOS (open url appdelegate method is not triggerd)?

I am working on SwiftUI app in which trying to perform deep linking. when I manually open the browser and put "myapp://" its navigating to app correctly. But in actual I am opening safari within app and after deep link success I want to call below…
Rahul
  • 537
  • 1
  • 7
  • 19
1
vote
2 answers

App not intercepting universal links instantiated from within SFSafariViewController

I have an app that opens an SFSafariViewController to handle payments on web. Once the user does the purchase, they are landed on a confirmation screen that has a "next" button. When they click that button it is sending them to a url…
user1366265
  • 1,306
  • 1
  • 17
  • 28
1
vote
0 answers

PWA in WkWebview and Google Sign via SFSafariViewController (no redirect to wkwebview)

I try to package a pwa app with Google Sign In wkwebview for ios14. Pwa works well but Google Signin fails. In the first page, I am trying to do goole authentication via sfsafariviewcontroller. the problem is that i am never redirected to the…
1
vote
1 answer

SFSafariViewController no dark mode with custom bar tint color

I call SFSafariViewController from my app to open myurl. I changed the bar tint color of SFSafariViewController. This works fine using: vc.preferredBarTintColor = UIColor.teal025 However when device changes appearance style mode from light to dark,…
geohei
  • 696
  • 4
  • 15
1
vote
1 answer

SafariView only loads a single url, can't seem to load another

I want to load specific webpages inside a Safari browser INSIDE the app (i.e. not going outside the app), and it should exist within the same safari-environment, i.e. no regular webviews. I have this SafariView to enable that in SwiftUI. Now I want…
matthias_code
  • 833
  • 8
  • 21
1
vote
0 answers

Safari app extension Popover and Command at the same time

I have a safari app extension, which open a popover by clicking on the toolbar item. SFSafariToolbarItem Action Popover Identifier Button
Vivek Maru
  • 8,347
  • 1
  • 24
  • 34
1
vote
1 answer

Swift SFSafariViewController present show blank page

EDIT2 here is a MWC containing 2 classes with only the SFSafariViewController for opening an url embedded. What I get on screen is a blank page The files are also here https://github.com/camillegallet/testSwiftSafariEmbeded AppDelegate import…
1
vote
0 answers

How to forcefully disable this option "Request Desktop Website" in SFSafariViewController (iOS Swift 4.2)

I want to disable forcefully "Request Desktop Website" programmatically in SFSafariViewController. All of my articles opening in the Website view by default. I want to open all my URLs in Mobile View. I want to disable Request Desktop Website…
Moiz Irshad
  • 700
  • 1
  • 6
  • 15
1
vote
1 answer

Prompt Camera and Photo Library permisions inside SFSafariViewController

I'm using the SFSafariViewController to access a website that has an image upload button. When the user touches it, it shows library/camera options which work fine in iOS 13. I did not add Camera and Photo Library usage descriptions to my…
André Lourenço
  • 668
  • 5
  • 10