Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 14 Rev 17
Línea 13... Línea 13...
13
    @ObservedObject private var viewModel = CapsuleCardViewModel()
13
    @ObservedObject private var viewModel = CapsuleCardViewModel()
Línea 14... Línea 14...
14
    
14
    
15
    
15
    
16
    private let userUuid : String;
-
 
17
    private var capsuleTitle : String = ""
-
 
-
 
16
    private let userUuid : String;
Línea 18... Línea 17...
18
    
17
    private var capsuleTitle : String = ""
19
 
18
    private var appData = AppData.sharedInstance
20
    
-
 
21
    
-
 
22
    init(capsuleUuid : String)
-
 
23
    {
19
    
24
        let appDao = AppDao.sharedInstance
20
    
Línea 25... Línea 21...
25
        let appData = appDao.selectOne()
21
    init(capsuleUuid : String)
26
        
22
    {
Línea 37... Línea 33...
37
    }
33
    }
Línea 38... Línea 34...
38
    
34
    
Línea 39... Línea 35...
39
    var body: some View {
35
    var body: some View {
40
 
-
 
41
        Button(action: {
-
 
42
            let appDao = AppDao.sharedInstance
36
 
43
            var appData = appDao.selectOne()
37
        Button(action: {
44
            appData.topicUuidActive = self.viewModel.capsule.topicUuid
38
            appData.topicUuidActive = self.viewModel.capsule.topicUuid
45
            appData.capsuleUuidActive = self.viewModel.capsule.uuid
-
 
46
            appData.slideUuidActive = ""
-
 
47
            
39
            appData.capsuleUuidActive = self.viewModel.capsule.uuid
Línea 48... Línea 40...
48
            print("update query : 7")
40
            appData.slideUuidActive = ""
Línea 49... Línea 41...
49
            appDao.update(model: appData)
41
            appData.save()
50
 
42