From f1a19050985585f2dd756532456f51b9600b7a78 Mon Sep 17 00:00:00 2001 From: Pascal Batty Date: Wed, 22 Feb 2023 18:56:49 +0100 Subject: [PATCH] Fix action button counter glitch in most scenarios (#1009) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds monospacedDigit modifier to the counter next to action button counter labels. This fixes the layout glitch that happens when the counter changes, most noticeably when you tap the boost or favorite button except for when the counter gains or loses a digit (9 -> 10, 99 -> 100 etc…) Still greatly improves the actions view experience though. Co-authored-by: Pascal Batty --- .../Sources/Status/Row/Subviews/StatusRowActionsView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift index 55c0f046..373deddd 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift @@ -121,6 +121,7 @@ struct StatusRowActionsView: View { Text("\(count)") .foregroundColor(Color(UIColor.secondaryLabel)) .font(.scaledFootnote) + .monospacedDigit() } } }