metatext-app-ios-iphone-ipad/Views/SwiftUI/View Controller Representables/SafariView.swift

17 lines
391 B
Swift
Raw Normal View History

2020-09-11 11:55:06 +02:00
// 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) {
}
}