ソースを参照

Always set placeholder when no image

onevcat 8 年 前
コミット
4ceff89624
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Sources/ImageView+Kingfisher.swift

+ 1 - 1
Sources/ImageView+Kingfisher.swift

@@ -69,7 +69,7 @@ extension Kingfisher where Base: ImageView {
         
         var options = KingfisherManager.shared.defaultOptions + (options ?? KingfisherEmptyOptionsInfo)
         
-        if !options.keepCurrentImageWhileLoading {
+        if !options.keepCurrentImageWhileLoading || base.image == nil {
             base.image = placeholder
         }