Animate GIFs.
This commit is contained in:
parent
b681f331ba
commit
4f586ced89
@ -327,6 +327,9 @@
|
|||||||
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