Sfoglia il codice sorgente

Merge pull request #1822 from enoktate/fix/animated-image-view-ios-15

Fixed iOS 15 availability check for M1.
Wei Wang 4 anni fa
parent
commit
6253cf0f84
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Sources/Views/AnimatedImageView.swift

+ 1 - 1
Sources/Views/AnimatedImageView.swift

@@ -230,7 +230,7 @@ open class AnimatedImageView: UIImageView {
         if let currentFrame = animator?.currentFrameImage {
             layer.contents = currentFrame.cgImage
         } else {
-            if #available(iOS 15.0, *) {
+            if #available(iOS 15, *), ProcessInfo.processInfo.operatingSystemVersion.majorVersion >= 15 {
                 super.display(layer)
             } else {
                 layer.contents = image?.cgImage