13 lines
333 B
Swift
13 lines
333 B
Swift
import SafariServices
|
|
import SwiftUI
|
|
|
|
struct SafariWebView: UIViewControllerRepresentable {
|
|
let url: URL
|
|
|
|
func makeUIViewController(context: Context) -> SFSafariViewController {
|
|
SFSafariViewController(url: url)
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: SFSafariViewController, context: Context) {}
|
|
}
|