Browse Source

Fix for UIImage placeholder always showing on error

PJ Fechner 3 years ago
parent
commit
66a2864872
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Sources/Extensions/ImageView+Kingfisher.swift

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

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