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 62... Línea 62...
62
                            
62
                            
Línea 63... Línea 63...
63
                Spacer()
63
                Spacer()
64
                    
64
                    
65
                
65
                
66
                HStack {
66
                HStack {
67
                    if self.viewModel.topic.image.isEmpty {
67
                    if self.viewModel.topic.image.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
68
                        Image(uiImage: UIImage(named: "logo") ?? UIImage())
68
                        Image(uiImage: UIImage(named: "logo") ?? UIImage())
69
                            .resizable()
69
                            .resizable()
70
                            .aspectRatio(contentMode: .fit)
70
                            .aspectRatio(contentMode: .fit)
71
                    } else {
71
                    } else {
72
                        CustomAsyncImage(
72
                        CustomAsyncImage(
73
                            url: URL(string: self.viewModel.topic.image)!,
73
                            url: URL(string: self.viewModel.topic.image.trimmingCharacters(in: .whitespacesAndNewlines))!,
74
                            placeholder: { Text(Config.LANG_COMMON_LOADING).font(.footnote).foregroundColor(.black)},
74
                            placeholder: { Text(Config.LANG_COMMON_LOADING).font(.footnote).foregroundColor(.black)},
75
                            image: {
75
                            image: {