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