mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 17:50:59 +00:00
16 lines
391 B
Swift
16 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) {
|
|
|
|
}
|
|
}
|