AutorÃa | Ultima modificación | Ver Log |
//// SafariView.swift// twogetskills//// Created by Efrain Yanez Recanatini on 8/28/22.//import SafariServicesimport UIKitimport SwiftUIstruct SafariView: UIViewControllerRepresentable {private var sURL : Stringinit (sURL : String){print("SafariView sURL1 : \(sURL)")self.sURL = sURL}func makeUIViewController(context: UIViewControllerRepresentableContext<SafariView>) -> SFSafariViewController {print("SafariView sURL2 : \(sURL)")let url = URL(string: sURL)let safariView = SFSafariViewController(url: url!)// We want our view to have a close button instead of 'done'safariView.dismissButtonStyle = .closereturn safariView}func updateUIViewController(_ uiViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SafariView>) {}}