commit f4b1a504a59fc4819ce7a3fbd28336316dd3c1e0
parent 99ae7de5eb6d7170cf176d7f77ebe152d16e4bc0
Author: Daniel D’Aquino <daniel@daquino.me>
Date: Mon, 16 Jun 2025 16:38:05 -0700
Fix issue with balance loading appearance
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 <daniel@daquino.me>
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git 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)
}