Bläddra i källkod

Add a comment for the Xcode issue

onevcat 4 år sedan
förälder
incheckning
865f3e39e3
1 ändrade filer med 5 tillägg och 1 borttagningar
  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 {
-            if #available(iOS 15, *), ProcessInfo.processInfo.operatingSystemVersion.majorVersion >= 15 {
+            if #available(iOS 15, *),
+               // https://developer.apple.com/documentation/xcode-release-notes/xcode-13-release-notes
+               // Apple Xcode 13 issue 83378814
+                ProcessInfo.processInfo.operatingSystemVersion.majorVersion >= 15
+            {
                 super.display(layer)
             } else {
                 layer.contents = image?.cgImage