Leon Dudlik %!s(int64=4) %!d(string=hai) anos
pai
achega
55f370c189
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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
+            }
         }
     }