Successive setImage() calls #1646
-
Lets say i call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you are right on this.
Kingfisher is clever enough to not download the same image multiple times, and it will remember the setting method of last image to use it. For your case:
imageView.kf.setImage(with: url) { r in
switch r {
case .success: break
case .failure(let e): e.isNotCurrentTask // true
}
}
imageView.kf.setImage(with: url) { r in
print(r) // success
} |
Beta Was this translation helpful? Give feedback.
Yes, you are right on this.
Kingfisher is clever enough to not download the same image multiple times, and it will remember the setting method of last image to use it.
For your case: