Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 8 Rev 11
Línea 21... Línea 21...
21
                    if comment.image.isEmpty {
21
                    if comment.image.isEmpty {
Línea 22... Línea 22...
22
                    
22
                    
23
                    
23
                    
24
                    Image(uiImage: UIImage(named: "logo") ?? UIImage())
-
 
25
                        .resizable()
24
                    Image(uiImage: UIImage(named: "logo") ?? UIImage())
Línea 26... Línea 25...
26
                        .resizable()
25
                        .resizable()
Línea 38... Línea 37...
38
                                   
37
                                   
39
                        }
38
                        }
40
                    )
39
                    )
41
                }
40
                }
42
                }
41
                }
43
                    .frame(height: Config.COMMENT_IMAGE_SIZE)
-
 
44
           
42
                .frame(width: Config.COMMENT_IMAGE_SIZE_WIDTH, height: Config.COMMENT_IMAGE_SIZE_HEIGHT)
45
                    .clipShape(Circle())
43
                .clipShape(Circle())
Línea 57... Línea 55...
57
                     
55
                     
Línea 58... Línea 56...
58
                        Spacer()
56
                        Spacer()
Línea 59... Línea 57...
59
                        
57
                        
-
 
58
                        if !comment.link_delete.isEmpty {
-
 
59
                        
-
 
60
                            Button(action: {
-
 
61
                                
-
 
62
                                NotificationCenter.default.post(
-
 
63
                                    name:Constants.NOTIFICATION_NAME_COMMAND_DELETE_COMMENT,
-
 
64
                                    object: nil,
60
                        if !comment.link_delete.isEmpty {
65
                                    userInfo: ["id" : comment.id, "link_delete" : comment.link_delete])
61
                        
66
                                
62
                        Button(action: {}, label: {
67
                            }, label: {
63
                            Image(systemName: "trash")
68
                                Image(systemName: "trash")
64
                                .resizable()
69
                                    .resizable()
65
                                .aspectRatio(contentMode: /*@START_MENU_TOKEN@*/.fill/*@END_MENU_TOKEN@*/)
70
                                    .aspectRatio(contentMode: /*@START_MENU_TOKEN@*/.fill/*@END_MENU_TOKEN@*/)
66
                                .frame(width: 16, height: 16, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
71
                                    .frame(width: 16, height: 16, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
67
                        }).padding(.trailing, 10)
72
                            }).padding(.trailing, 10)
68
                        .foregroundColor(Color("color_capsule_list_item_title_foreground"))
73
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
69
                            
74
                                
70
                        }
75
                            }
71
                    }
76
                    }
72
                    HStack {
77
                    HStack {