New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration on NaiveSafariView #2
Comments
Hi @yixe,
If you're keen to use it for your project, however, you can make your own import SwiftUI
import SafariServices
struct NaiveSafariView: UIViewControllerRepresentable {
var url: URL
var configuration: SFSafariViewController.Configuration = .init()
func makeUIViewController(context: Context) -> SFSafariViewController {
SFSafariViewController(url: url, configuration: configuration)
}
func updateUIViewController(_ uiViewController: SFSafariViewController, context: Context) {
}
} |
Oh I see, how would you go about putting a SafariView inside a sheet/fullscreencover, It seem to always hit back with |
For the moment, you need to implement something like Its For the use cases you mentioned, I’ll release a new update soon that adds Thank you for pointing out this case. 😃 |
Starting from v2.2.0, you can now pass the Thank you for your contribution. 🤗 |
It seems there is no way to configure NaiveSafariView at the moment.
For example to add
entersReaderIfAvailable: true
to a sheet that has NaiveSafariView as its content.The text was updated successfully, but these errors were encountered: