Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 17 Rev 22
Línea 37... Línea 37...
37
            .background(networkMonitor.status == .disconnected ? Color("color_network_disconnected_background") : Color("color_app_bar_background"))
37
            .background(networkMonitor.status == .disconnected ? Color("color_network_disconnected_background") : Color("color_app_bar_background"))
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"))
-
 
40
            
40
            
41
            ScrollView {
41
            ScrollView {
42
                
Línea 42... Línea -...
42
                LazyVStack  {
-
 
43
                    ForEach(0..<self.viewModel.notifications.count) { index in
43
                if self.viewModel.notifications.count == 0  {
44
                    
-
 
45
                        VStack(spacing: 0) {
-
 
46
                           HStack {
-
 
47
                                Spacer()
-
 
48
                                            Text("No hay notificaciones")
44
                    NotificationListItemEmptyView()
49
                                                .font(Font.custom(Config.FONT_NAME_BOLD, size: 14))
-
 
50
                                                .foregroundColor(Color("color_capsule_list_item_title_foreground"))
45
                    
51
                                         
46
                } else {
52
                                    Spacer()
47
                
Línea -... Línea 48...
-
 
48
                
-
 
49
                
53
                                            
50
                    LazyVStack  {
-
 
51
                        
54
                                 
52
                       // ForEach(0..<self.viewModel.notifications.count) { index in
55
                             }
53
                        //    let notificationItem = self.viewModel.notifications[index]
-
 
54
                        ForEach(self.viewModel.notifications) { notificationItem in
56
                        
55
                                NotificationListItemView(notification: notificationItem)  {
Línea 57... Línea -...
57
                        Divider()
-
 
58
                        } .background(Color("color_capsule_list_item_background"))
-
 
59
                        .padding(.leading, 5)
-
 
60
                        .padding(.trailing, 5)
-
 
61
                        
-
 
62
                        
56
                                    self.viewModel.removeItem(id: notificationItem.id)
63
                    /*
-
 
64
                        CompanyListItemView(companyUuid: self.viewModel.companies[index].uuid)
57
                            }
65
                    
58
                                
Línea 66... Línea 59...
66
                    */
59
                        }
67
                    }
60