Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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 SafariServices
import UIKit
import SwiftUI

struct SafariView: UIViewControllerRepresentable {
    var url: URL
        
    func makeUIViewController(context: UIViewControllerRepresentableContext<SafariView>) -> SFSafariViewController {
        let safariView = SFSafariViewController(url: url)
        
        // We want our view to have a close button instead of 'done'
        safariView.dismissButtonStyle = .close
        return safariView
    }
    
    func updateUIViewController(_ uiViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SafariView>) {

    }
}