Skip to content

Commit

Permalink
Always set placeholder when no image
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Aug 16, 2017
1 parent 8c025e9 commit 700f5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ImageView+Kingfisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 700f5cb

Please sign in to comment.