Animate GIFs.

This commit is contained in:
Hedden, Kyle Matthew 2023-12-20 19:16:22 -05:00
parent b681f331ba
commit 4f586ced89

View File

@ -327,6 +327,9 @@
let loadingImageName = self.currentImageName, loadingImageName == imageName else { return }
self.isFallbackImage = isFallbackImage
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
self.addConstraints(width: width, height: height, size: image?.size)
self.loadingSpinnerHeightConstraint?.constant = 0