From f8556183a3e698fc135b2f143514cf70e6c45cfc Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Thu, 15 Dec 2022 08:11:51 -0500 Subject: [PATCH] Fix inverting pizelSize! --- .../Sources/MastodonUI/View/Content/StatusCardControl.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift b/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift index bd2485cf4..228159d1f 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift @@ -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