mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-22 06:40:44 +08:00
15 lines
420 B
Swift
15 lines
420 B
Swift
import SafariServices
|
|
import SwiftUI
|
|
|
|
struct SafariView: UIViewControllerRepresentable {
|
|
let url: URL
|
|
|
|
func makeUIViewController(context: Context) -> SFSafariViewController {
|
|
let controller = SFSafariViewController(url: url)
|
|
controller.dismissButtonStyle = .close
|
|
return controller
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: SFSafariViewController, context: Context) {}
|
|
}
|