Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 17 Rev 30
Línea 99... Línea 99...
99
            )
99
            )
100
            .padding(.horizontal, 5)
100
            .padding(.horizontal, 5)
101
        }.onAppear {
101
        }.onAppear {
102
            viewModel.fetchProgress(capsuleUuid: self.viewModel.capsule.uuid, userUuid: self.userUuid)
102
            viewModel.fetchProgress(capsuleUuid: self.viewModel.capsule.uuid, userUuid: self.userUuid)
103
        }
103
        }
104
        /*.onReceive(NotificationCenter.default.publisher(for: Constants.NOTIFICATION_NAME_CHANGE_PERCENTAJE_COMPLETED_CAPSULE))
104
        .onReceive(NotificationCenter.default.publisher(for: Constants.NOTIFICATION_NAME_CHANGE_PERCENTAJE_COMPLETED_CAPSULE))
105
        { data in
105
        { data in
106
            if data.userInfo != nil {
106
            if data.userInfo != nil {
107
                if let capsuleUuid = data.userInfo?["capsuleUuid"]! as? String {
107
                if let capsuleUuid = data.userInfo?["capsuleUuid"]! as? String {
108
                    if !capsuleUuid.isEmpty && capsuleUuid == self.viewModel.capsule.uuid {
108
                    if !capsuleUuid.isEmpty && capsuleUuid == self.viewModel.capsule.uuid {
Línea 109... Línea 109...
109
                      
109
                      
Línea 110... Línea 110...
110
                        self.viewModel.fetchProgress(capsuleUuid: capsuleUuid, userUuid: appData.userUuid)
110
                        self.viewModel.fetchProgress(capsuleUuid: capsuleUuid, userUuid: appData.userUuid)
111
                        
111
                        
112
                    }
112
                    }
113
                }
113
                }
114
            }
114
            }
115
        }*/
115
        }