Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 22 Rev 23
Línea 38... Línea 38...
38
    
38
    
Línea 39... Línea 39...
39
            Divider().background(networkMonitor.status == .disconnected ? Color("color_network_disconnected_background") : Color("color_app_bar_background"))
39
            Divider().background(networkMonitor.status == .disconnected ? Color("color_network_disconnected_background") : Color("color_app_bar_background"))
Línea 40... Línea 40...
40
            
40
            
41
            ScrollView {
41
            ScrollView {
Línea 42... Línea 42...
42
                
42
                
Línea 43... Línea 43...
43
                if self.viewModel.notifications.count == 0  {
43
                if self.viewModel.groups.count == 0  {
Línea -... Línea 44...
-
 
44
                    NotificationListItemEmptyView()
44
                    NotificationListItemEmptyView()
45
                    
-
 
46
                } else {
45
                    
47
                
-
 
48
                
46
                } else {
49
                
-
 
50
                    LazyVStack  {
47
                
51
                        
48
                
52
 
-
 
53
                        ForEach(self.viewModel.groups) { groupItem in
49
                
54
                                
50
                    LazyVStack  {
-
 
51
                        
55
                            ForEach(0..<groupItem.notifications.count, id: \.self) { index in
52
                       // ForEach(0..<self.viewModel.notifications.count) { index in
-
 
53
                        //    let notificationItem = self.viewModel.notifications[index]
56
                                
54
                        ForEach(self.viewModel.notifications) { notificationItem in
57
                                let notificationItem = groupItem.notifications[index]
55
                                NotificationListItemView(notification: notificationItem)  {
58
                            
56
                                    self.viewModel.removeItem(id: notificationItem.id)
-
 
57
                            }
59
                                NotificationListItemView(notification: notificationItem)  {
58
                                
60
                                    self.viewModel.removeItem(id: notificationItem.id)
59
                        }
61
                                }
Línea 60... Línea 62...
60
                        
62
                            }