Fixed animated image view for iOS 13 and below
@@ -2,6 +2,14 @@
-----
+## [Unreleased]
+
+#### Fix
+* Fix `AnimatedImageView` crashing on iOS 13 and below. [#1804]
+---
## [7.0.0-beta.3 - Version 7](https://github.com/onevcat/Kingfisher/releases/tag/7.0.0-beta.3) (2021-08-29)
#### Add
@@ -230,7 +230,11 @@ open class AnimatedImageView: UIImageView {
if let currentFrame = animator?.currentFrameImage {
layer.contents = currentFrame.cgImage
} else {
- super.display(layer)
+ if #available(iOS 15.0, *) {
+ super.display(layer)
+ } else {
+ layer.contents = image?.cgImage
+ }
}