Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 55 | Rev 57 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 55 Rev 56
Línea 3... Línea 3...
3
//  twogetskills
3
//  twogetskills
4
//
4
//
5
//  Created by Efrain Yanez Recanatini on 8/28/22.
5
//  Created by Efrain Yanez Recanatini on 8/28/22.
6
//
6
//
Línea 7... Línea -...
7
 
-
 
8
import SwiftUI
-
 
Línea 9... Línea -...
9
import SafariServices
-
 
10
 
-
 
11
struct SafariView: UIViewControllerRepresentable {
-
 
12
    typealias UIViewControllerType = SFSafariViewController
-
 
13
 
-
 
14
    var url: URL?
-
 
15
 
-
 
16
    func makeUIViewController(context: UIViewControllerRepresentableContext<SafariView>) -> SFSafariViewController {
-
 
17
        return SFSafariViewController(url: url!)
-
 
18
    }
-
 
19
 
-
 
20
    func updateUIViewController(_ safariViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SafariView>) {
-
 
21
    }
-
 
22
}
-
 
23
 
-
 
24
#if DEBUG
-
 
25
struct SafariView_Previews: PreviewProvider {
-
 
26
    static var previews: some View {
-
 
27
        SafariView(url: URL(string: "https://david.y4ng.fr")!)
-
 
28
    }
-