Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 26 Rev 31
Línea 41... Línea 41...
41
    
41
    
Línea 42... Línea 42...
42
            Divider().background(networkMonitor.status == .disconnected ? Color("color_network_disconnected_background") : Color("color_app_bar_background"))
42
            Divider().background(networkMonitor.status == .disconnected ? Color("color_network_disconnected_background") : Color("color_app_bar_background"))
Línea 43... Línea 43...
43
            
43
            
44
            ScrollView {
44
            ScrollView {
Línea 45... Línea 45...
45
                
45
                
Línea 46... Línea 46...
46
                if self.viewModel.groups.count == 0  {
46
                if self.viewModel.notifications.count == 0  {
Línea 47... Línea -...
47
                    NotificationListItemEmptyView()
-
 
48
                    
47
                    NotificationListItemEmptyView()
49
                } else {
-
 
50
                
-
 
51
                
-
 
52
                
-
 
53
                    LazyVStack  {
-
 
54
                        
-
 
55
 
-
 
56
                        ForEach(self.viewModel.groups) { groupItem in
-
 
57
                            
-
 
Línea 58... Línea 48...
58
                            HStack {
48
                    
Línea 59... Línea 49...
59
                            
49
                } else {
Línea 60... Línea 50...
60
                                Text(groupItem.label)
50
                
Línea 61... Línea 51...
61
                                    .font(Font.custom(Config.FONT_NAME_BOLD, size: 14))
51
                
Línea 87... Línea 77...
87
                                        !notificationItem.url.isEmpty  &&
77
                                        !notificationItem.url.isEmpty  &&
88
                                        notificationItem.viewed == 0  {
78
                                        notificationItem.viewed == 0  {
Línea 89... Línea 79...
89
                                        
79
                                        
90
                                        openURL(URL(string: notificationItem.url)!)
80
                                        openURL(URL(string: notificationItem.url)!)
-
 
81
                                        self.viewModel.markForViewedById(id: notificationItem.id)
Línea 91... Línea 82...
91
                                        self.viewModel.markForViewedById(id: notificationItem.id)
82
                                        //self.viewModel.fetchAll()
Línea 92... Línea 83...
92
                                        
83
                                        
93
                                    }
84
                                    }
-
 
85
                                    
94
                                    
86
                                }) {
Línea 95... Línea 87...
95
                                }) {
87
                                    self.viewModel.removeItem(id: notificationItem.id)
96
                                    self.viewModel.removeItem(id: notificationItem.id)
-
 
-
 
88
                                    //self.viewModel.fetchAll()
97
                                }
89
                                }
98
                                   
90
                                   
99
                            }
91
                            }
100
                        }
92
                        
101
                    }
93
                    }