Fix inverting pizelSize!

This commit is contained in:
Jed Fox 2022-12-15 08:11:51 -05:00
parent 0c8c9778b0
commit f8556183a3
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ public final class StatusCardControl: UIControl {
if let window = window {
layer.borderWidth = window.screen.pixelSize
dividerConstraint?.constant = 1 / window.screen.pixelSize
dividerConstraint?.constant = window.screen.pixelSize
}
}
@ -196,7 +196,7 @@ public final class StatusCardControl: UIControl {
NSLayoutConstraint.deactivate(layoutConstraints)
dividerConstraint?.deactivate()
let pixelSize = 1 / (window?.screen.pixelSize ?? 1)
let pixelSize = (window?.screen.pixelSize ?? 1)
switch layout {
case .large(let aspectRatio):
containerStackView.alignment = .fill