Skip to content

Commit babea9c

Browse files
authored
Merge pull request #279 from ElonPark/fix-get-display-scale
fix: fix getDisplayScale
2 parents 8eaa3a1 + a60afbe commit babea9c

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
@@ -109,7 +109,7 @@ final class Coordinates<PinView: Layoutable> {
109109
private func getDisplayScale() -> CGFloat {
110110
#if os(iOS) || os(tvOS)
111111
if #available(iOS 13.0, tvOS 13.0, *) {
112-
return UITraitCollection.current.displayScale
112+
return max(UITraitCollection.current.displayScale, 1)
113113
} else {
114114
return UIScreen.main.scale
115115
}

0 commit comments

Comments
 (0)