Kaynağa Gözat

Fix .zero to 1.0 ensure minimal operation through the scale factor

hyun99999 2 yıl önce
ebeveyn
işleme
4a851c4e9c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Sources/Views/AnimatedImageView.swift

+ 1 - 1
Sources/Views/AnimatedImageView.swift

@@ -272,7 +272,7 @@ open class AnimatedImageView: UIImageView {
             
             if #available(iOS 13.0, *) {
                 let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
-                scale = windowScene?.screen.scale ?? .zero
+                scale = windowScene?.screen.scale ?? 1.0
             } else {
                 scale = UIScreen.main.scale
             }