Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 24 Rev 25
Línea 10... Línea 10...
10
struct NotificationListItemView: View {
10
struct NotificationListItemView: View {
Línea 11... Línea 11...
11
    
11
    
Línea 12... Línea -...
12
    var notification :  UserNotificationModel
-
 
-
 
12
    var notification :  UserNotificationModel
13
    
13
    
Línea 31... Línea 31...
31
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
31
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
Línea 32... Línea 32...
32
                     
32
                     
Línea -... Línea 33...
-
 
33
                        Spacer()
-
 
34
                        
-
 
35
                        
-
 
36
                        if !notification.command.isEmpty && notification.viewed == 0 {
-
 
37
                            
-
 
38
                            Button(action:  onExecute, label: {
-
 
39
                                Image(systemName: "arrowtriangle.right.fill")
-
 
40
                                    .resizable()
-
 
41
                                    .aspectRatio(contentMode: /*@START_MENU_TOKEN@*/.fill/*@END_MENU_TOKEN@*/)
-
 
42
                                    .frame(width: 16, height: 16, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
-
 
43
                            }).padding(.trailing, 10)
-
 
44
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
-
 
45
                            
33
                        Spacer()
46
                        } else {
34
                        
47
                        
35
                        
48
                        
36
                            Button(action:  onDelete, label: {
49
                            Button(action:  onDelete, label: {
37
                                Image(systemName: "trash")
50
                                Image(systemName: "trash")
38
                                    .resizable()
51
                                    .resizable()
39
                                    .aspectRatio(contentMode: /*@START_MENU_TOKEN@*/.fill/*@END_MENU_TOKEN@*/)
52
                                    .aspectRatio(contentMode: /*@START_MENU_TOKEN@*/.fill/*@END_MENU_TOKEN@*/)
-
 
53
                                    .frame(width: 16, height: 16, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
Línea 40... Línea 54...
40
                                    .frame(width: 16, height: 16, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
54
                            }).padding(.trailing, 10)
41
                            }).padding(.trailing, 10)
55
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
42
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
56
                        }
43
                        
57
                        
Línea 89... Línea 103...
89
struct NotificationListItemView_Previews: PreviewProvider {
103
struct NotificationListItemView_Previews: PreviewProvider {
Línea 90... Línea 104...
90
    
104
    
Línea 91... Línea 105...
91
    static var  notification  = UserNotificationModel( userUuid: "U123", title: "Titulo Notification #1", body: "Description Notification #1", viewed: 0, url: "https://www.google.co.ve", dateOn: "2022-08-12", timeOn: "10:00:00")
105
    static var  notification  = UserNotificationModel( userUuid: "U123", title: "Titulo Notification #1", body: "Description Notification #1", viewed: 0, url: "https://www.google.co.ve", dateOn: "2022-08-12", timeOn: "10:00:00")
92
    
106
    
-
 
107
    static var previews: some View {
-
 
108
        NotificationListItemView(notification: notification,onExecute: {}) {
93
    static var previews: some View {
109
            
94
        NotificationListItemView(notification: notification) {}
110
        }