PJ Fechner 3 лет назад
Родитель
Сommit
3e7ff48a74
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Sources/Extensions/ImageView+Kingfisher.swift

+ 1 - 1
Sources/Extensions/ImageView+Kingfisher.swift

@@ -359,10 +359,10 @@ extension KingfisherWrapper where Base: KFCrossPlatformImageView {
                         }
                         }
 
 
                     case .failure:
                     case .failure:
+                        mutatingSelf.placeholder = nil
                         if let image = options.onFailureImage {
                         if let image = options.onFailureImage {
                             self.base.image = image
                             self.base.image = image
                         }
                         }
-                        mutatingSelf.placeholder = nil
                         completionHandler?(result)
                         completionHandler?(result)
                     }
                     }
                 }
                 }