import SwiftUI
import SafariServices
struct ContentView: View {
@State var urlString = "http://pistore.info"
var body: some View {
VStack {
SafariView(url: URL(string: urlString)!)
}
}
}
struct SafariView: UIViewControllerRepresentable {
let url: URL
func makeUIViewController(context: UIViewControllerRepresentableContext<SafariView>) -> SFSafariViewController {
return SFSafariViewController(url: url)
}
func updateUIViewController(_ uiViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SafariView>) {
}
}
If I use WebKit, there are many things that don't work, so I decided to use Safari Service
I want to get rid of the red bar in my hair