Rev 56 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
//// SafariView.swift// twogetskills//// Created by Efrain Yanez Recanatini on 8/28/22.//import SwiftUIimport SafariServicesstruct SafariView: UIViewControllerRepresentable {typealias UIViewControllerType = SFSafariViewControllervar url: URL?func makeUIViewController(context: UIViewControllerRepresentableContext<SafariView>) -> SFSafariViewController {return SFSafariViewController(url: url!)}func updateUIViewController(_ safariViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SafariView>) {}}#if DEBUGstruct SafariView_Previews: PreviewProvider {static var previews: some View {SafariView(url: URL(string: "https://david.y4ng.fr")!)}}#endif