We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1703b4d commit b2ff6d5Copy full SHA for b2ff6d5
Sources/Impl/Coordinates.swift
@@ -110,7 +110,7 @@ private func getDisplayScale() -> CGFloat {
110
#if os(iOS) || os(tvOS)
111
if #available(iOS 13.0, tvOS 13.0, *) {
112
let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
113
- return windowScene?.screen.scale ?? .zero
+ return windowScene?.screen.scale ?? 1.0
114
} else {
115
return UIScreen.main.scale
116
}
0 commit comments