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.
2 parents c71a27b + d103ba2 commit a0ab0f5Copy full SHA for a0ab0f5
Sources/Impl/Coordinates.swift
@@ -108,7 +108,11 @@ final class Coordinates<PinView: Layoutable> {
108
109
private func getDisplayScale() -> CGFloat {
110
#if os(iOS) || os(tvOS)
111
+ if #available(iOS 13.0, tvOS 13.0, *) {
112
+ return UITraitCollection.current.displayScale
113
+ } else {
114
return UIScreen.main.scale
115
+ }
116
#elseif os(OSX)
117
#if swift(>=4.1)
118
return NSScreen.main?.backingScaleFactor ?? 2.0
0 commit comments