mirror of
https://github.com/metabolist/metatext
synced 2024-12-28 10:40:32 +01:00
17 lines
391 B
Swift
17 lines
391 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import SafariServices
|
|
import SwiftUI
|
|
|
|
struct SafariView: UIViewControllerRepresentable {
|
|
let url: URL
|
|
|
|
func makeUIViewController(context: Context) -> SFSafariViewController {
|
|
SFSafariViewController(url: url)
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: SFSafariViewController, context: Context) {
|
|
|
|
}
|
|
}
|