Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 47 Rev 48
Línea 4... Línea 4...
4
//
4
//
5
//  Created by Efrain Yanez Recanatini on 8/24/22.
5
//  Created by Efrain Yanez Recanatini on 8/24/22.
6
//
6
//
Línea 7... Línea 7...
7
 
7
 
-
 
8
import SwiftUI
8
import SwiftUI
9
import AudioToolbox
9
import Network
10
import Network
10
import Alamofire
11
import Alamofire
11
import SwiftyJSON
12
import SwiftyJSON
Línea 22... Línea 23...
22
    @State private var showProgressView : Bool = false
23
    @State private var showProgressView : Bool = false
Línea 23... Línea 24...
23
    
24
    
24
    @State private var code: String = ""  {
25
    @State private var code: String = ""  {
25
        didSet {
26
        didSet {
26
            if code.count > 8 {
27
            if code.count > 8 {
27
                code = String(pcode.prefix(8))
28
                code = String(code.prefix(8))
28
                AudioServicesPlayAlertSoundWithCompletion(SystemSoundID(kSystemSoundID_Vibrate)) { return }
29
                AudioServicesPlayAlertSoundWithCompletion(SystemSoundID(kSystemSoundID_Vibrate)) { return }
29
            }
30
            }
30
        }
31
        }