Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 56 Rev 57
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 -... Línea 7...
-
 
7
 
-
 
8
import SafariServices
-
 
9
import UIKit
-
 
10
import SwiftUI
-
 
11
 
-
 
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
    }