Remove the duplicate load gif. Rely on the defaultCompletionBlock.
This commit is contained in:
parent
f4cb350a95
commit
1d4294803a
@ -327,9 +327,6 @@
|
|||||||
let loadingImageName = self.currentImageName, loadingImageName == imageName else { return }
|
let loadingImageName = self.currentImageName, loadingImageName == imageName else { return }
|
||||||
self.isFallbackImage = isFallbackImage
|
self.isFallbackImage = isFallbackImage
|
||||||
self.loadingSpinner.pause()
|
self.loadingSpinner.pause()
|
||||||
if let data = data {
|
|
||||||
self.imageView.loadGifWithData(data)
|
|
||||||
}
|
|
||||||
let layoutWillChange = self.shouldNotifyDelegateOnUpdate ? self.layoutWillChange(width: self.currentImageWidth, height: self.currentImageHeight, size: image?.size) : false
|
let layoutWillChange = self.shouldNotifyDelegateOnUpdate ? self.layoutWillChange(width: self.currentImageWidth, height: self.currentImageHeight, size: image?.size) : false
|
||||||
self.addConstraints(width: width, height: height, size: image?.size)
|
self.addConstraints(width: width, height: height, size: image?.size)
|
||||||
self.loadingSpinnerHeightConstraint?.constant = 0
|
self.loadingSpinnerHeightConstraint?.constant = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user