Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 22 Rev 30
Línea 155... Línea 155...
155
                }
155
                }
156
               // .zIndex(500)
156
               // .zIndex(500)
Línea 157... Línea 157...
157
              
157
              
158
            }.onAppear {
158
            }.onAppear {
-
 
159
                self.viewModel.fetchProgress(slideUuid: self.viewModel.slide.uuid, userUuid: self.userUuid)
-
 
160
            }.onReceive(NotificationCenter.default.publisher(for: Constants.NOTIFICATION_NAME_COMPLETED_SLIDE))
-
 
161
            { data in
-
 
162
               // print("CardGalleryView  Receive " )
-
 
163
                if data.userInfo != nil {
-
 
164
                    if let slideUuid = data.userInfo?["slideUuid"]! as? String {
-
 
165
                        if !slideUuid.isEmpty && slideUuid == self.viewModel.slide.uuid {
-
 
166
                            self.viewModel.fetchProgress(slideUuid: slideUuid, userUuid: appData.userUuid)
-
 
167
                        }
-
 
168
                    }
159
                self.viewModel.fetchProgress(slideUuid: self.viewModel.slide.uuid, userUuid: self.userUuid)
169
                }
160
            }
170
             }
161
             .alert(isPresented: $showGlobalAlert) {
171
             .alert(isPresented: $showGlobalAlert) {
162
                Alert(
172
                Alert(
163
                    title: Text(self.titleGlobalAlert),
173
                    title: Text(self.titleGlobalAlert),
164
                    message: Text(self.messageGlobalAlert),
174
                    message: Text(self.messageGlobalAlert),