From f4b1a504a59fc4819ce7a3fbd28336316dd3c1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Mon, 16 Jun 2025 16:38:05 -0700 Subject: [PATCH] Fix issue with balance loading appearance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During the implementation of the "hide balance" feature, the balance view was refactored in a way that caused it to not be redacted anymore, making it show the "??" instead of the intended skeleton loader. This commit fixes that issue without reverting the hide balance feature. Changelog-Fixed: Fixed issue where the text "??" would appear on the balance while loading Signed-off-by: Daniel D’Aquino --- damus/Views/Wallet/BalanceView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/damus/Views/Wallet/BalanceView.swift b/damus/Views/Wallet/BalanceView.swift index bc96e508..0e7181a4 100644 --- a/damus/Views/Wallet/BalanceView.swift +++ b/damus/Views/Wallet/BalanceView.swift @@ -22,7 +22,12 @@ struct BalanceView: View { else { // Make sure we do not show any numeric value to the user when still loading (or when failed to load) // This is important because if we show a numeric value like "zero" when things are not loaded properly, we risk scaring the user into thinking that they have lost funds. - self.numericalBalanceView(text: "??") + Text(verbatim: "??") + .lineLimit(1) + .minimumScaleFactor(0.70) + .font(.veryVeryLargeTitle) + .fontWeight(.heavy) + .foregroundStyle(PinkGradient) .redacted(reason: .placeholder) .shimmer(true) }