Leon Dudlik před 4 roky
rodič
revize
55f370c189
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      Sources/Views/AnimatedImageView.swift

+ 5 - 1
Sources/Views/AnimatedImageView.swift

@@ -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
+            }
         }
     }