Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 56 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
55 efrain 1
//
2
//  SafariView.swift
3
//  twogetskills
4
//
5
//  Created by Efrain Yanez Recanatini on 8/28/22.
6
//
7
 
57 efrain 8
import SafariServices
9
import UIKit
10
import SwiftUI
55 efrain 11
 
57 efrain 12
struct SafariView: UIViewControllerRepresentable {
13
    var url: URL
14
 
15
    func makeUIViewController(context: UIViewControllerRepresentableContext<SafariView>) -> SFSafariViewController {
16
        let safariView = SFSafariViewController(url: url)
17
 
18
        // We want our view to have a close button instead of 'done'
19
        safariView.dismissButtonStyle = .close
20
        return safariView
21
    }
22
 
23
    func updateUIViewController(_ uiViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SafariView>) {
24
 
25
    }
26
}
27