diff --git a/Sources/Impl/Coordinates.swift b/Sources/Impl/Coordinates.swift index afd74d9..2d22563 100644 --- a/Sources/Impl/Coordinates.swift +++ b/Sources/Impl/Coordinates.swift @@ -109,8 +109,7 @@ final class Coordinates { private func getDisplayScale() -> CGFloat { #if os(iOS) || os(tvOS) if #available(iOS 13.0, tvOS 13.0, *) { - let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene - return windowScene?.screen.scale ?? 1.0 + return UITraitCollection.current.displayScale } else { return UIScreen.main.scale }