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 b2ff6d5 commit d103ba2Copy full SHA for d103ba2
Sources/Impl/Coordinates.swift
@@ -109,8 +109,7 @@ final class Coordinates<PinView: Layoutable> {
109
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 ?? 1.0
+ return UITraitCollection.current.displayScale
114
} else {
115
return UIScreen.main.scale
116
}
0 commit comments