Przeglądaj źródła

Fix animated image (GIF) will lose it's kf_imageSource when decoding

xspyhack 9 lat temu
rodzic
commit
3da8676c1b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Sources/Image.swift

+ 1 - 1
Sources/Image.swift

@@ -314,7 +314,7 @@ extension Image {
     
     func kf_decodedImage(scale scale: CGFloat) -> Image? {
         // prevent animated image (GIF) lose it's images
-        if kf_images != nil {
+        if kf_images != nil || kf_imageSource != nil {
             return self
         }