Skip to content

Commit b2ff6d5

Browse files
committed
Fix .zero to 1.0 ensure minimal operation through the scale factor.
1 parent 1703b4d commit b2ff6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Impl/Coordinates.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private func getDisplayScale() -> CGFloat {
110110
#if os(iOS) || os(tvOS)
111111
if #available(iOS 13.0, tvOS 13.0, *) {
112112
let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
113-
return windowScene?.screen.scale ?? .zero
113+
return windowScene?.screen.scale ?? 1.0
114114
} else {
115115
return UIScreen.main.scale
116116
}

0 commit comments

Comments
 (0)