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 106... Línea 106...
106
                )
106
                )
107
                .padding(.horizontal, 5)
107
                .padding(.horizontal, 5)
108
            }
108
            }
109
            .onAppear {
109
            .onAppear {
110
                self.viewModel.fetchProgress(slideUuid: self.viewModel.slide.uuid, userUuid: self.userUuid)
110
                self.viewModel.fetchProgress(slideUuid: self.viewModel.slide.uuid, userUuid: self.userUuid)
-
 
111
            }.onReceive(NotificationCenter.default.publisher(for: Constants.NOTIFICATION_NAME_COMPLETED_SLIDE))
-
 
112
            { data in
-
 
113
                if data.userInfo != nil {
-
 
114
                    if let notificationSlideUuid = data.userInfo?["slideUuid"]! as? String {
-
 
115
                        if !notificationSlideUuid.isEmpty && notificationSlideUuid == self.viewModel.slide.uuid {
-
 
116
                            self.viewModel.fetchProgress(slideUuid: notificationSlideUuid, userUuid: appData.userUuid)
-
 
117
                        }
-
 
118
                    }
-
 
119
                }
111
            }
120
            }
Línea 112... Línea 121...
112
           
121
           
113
           
122