Proyectos de Subversion Iphone Microlearning - Inconcert

Rev

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

Rev 1 Rev 19
Línea 50... Línea 50...
50
                .padding(.horizontal, 5)
50
                .padding(.horizontal, 5)
51
                .padding(.top, 5)
51
                .padding(.top, 5)
52
                .multilineTextAlignment(/*@START_MENU_TOKEN@*/.leading/*@END_MENU_TOKEN@*/)
52
                .multilineTextAlignment(/*@START_MENU_TOKEN@*/.leading/*@END_MENU_TOKEN@*/)
Línea 53... Línea 53...
53
    
53
    
54
                HStack {
54
                HStack {
55
                    if self.viewModel.capsule.image.isEmpty {
55
                    if self.viewModel.capsule.image.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
56
                        Image(uiImage: UIImage(named: "logo") ?? UIImage())
56
                        Image(uiImage: UIImage(named: "logo") ?? UIImage())
57
                            .resizable()
57
                            .resizable()
58
                            .aspectRatio(contentMode: .fit)
58
                            .aspectRatio(contentMode: .fit)
59
                    } else {
59
                    } else {
60
                        CustomAsyncImage(
60
                        CustomAsyncImage(
61
                            url: URL(string: self.viewModel.capsule.image)!,
61
                            url: URL(string: self.viewModel.capsule.image.trimmingCharacters(in: .whitespacesAndNewlines))!,
62
                            placeholder: { Text(Config.LANG_COMMON_LOADING).font(.footnote).foregroundColor(.black)},
62
                            placeholder: { Text(Config.LANG_COMMON_LOADING).font(.footnote).foregroundColor(.black)},
63
                            image: {
63
                            image: {
64
                                Image(uiImage: $0).resizable()
64
                                Image(uiImage: $0).resizable()
65
                            }
65
                            }