Просмотр исходного кода

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

hyun99999 2 лет назад
Родитель
Сommit
4a851c4e9c
1 измененных файлов с 1 добавлено и 1 удалено
  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, *) {
             if #available(iOS 13.0, *) {
                 let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
                 let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
-                scale = windowScene?.screen.scale ?? .zero
+                scale = windowScene?.screen.scale ?? 1.0
             } else {
             } else {
                 scale = UIScreen.main.scale
                 scale = UIScreen.main.scale
             }
             }