Skip to content

Commit

Permalink
Call image setter when onImageUpdated not delegated
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Jul 1, 2022
1 parent b2b7b90 commit acf7927
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/General/KingfisherManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,11 @@ public class KingfisherManager {
{
var options = options
if let provider = ImageProgressiveProvider(options, refresh: { image in
guard let strategy = options.progressiveJPEG?.onImageUpdated(image) else {
guard let setter = progressiveImageSetter else {
return
}
guard let setter = progressiveImageSetter else {
guard let strategy = options.progressiveJPEG?.onImageUpdated(image) else {
setter(image)
return
}
switch strategy {
Expand Down

0 comments on commit acf7927

Please sign in to comment.