commit 03bb845429ae4b241e97a56fdc7394e02d35324d
parent 82b542709c6848b2fd19f7eda5ec88ed3fb72c38
Author: Marc Stibane <marc@taler.net>
Date: Mon, 6 Nov 2023 19:47:49 +0100
Debugging
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Views/Balances/PendingRowView.swift b/TalerWallet1/Views/Balances/PendingRowView.swift
@@ -27,8 +27,8 @@ struct PendingRowContentV: View {
totalWidth = totalStr.widthOfString(usingUIFont: uiFont, sizeCategory)
}
- let logStr = String(format: "image: %.2f title: %.2f total: %.2f", imageWidth, max(title1Width, title2Width), totalWidth)
- print(logStr)
+// let logStr = String(format: "image: %.2f title: %.2f total: %.2f", imageWidth, max(title1Width, title2Width), totalWidth)
+// print(logStr)
return imageWidth + (isHorizontal ? totalWidth
: max(title1Width, title2Width))
}
diff --git a/TalerWallet1/Views/Exchange/ExchangeRowView.swift b/TalerWallet1/Views/Exchange/ExchangeRowView.swift
@@ -18,7 +18,8 @@ struct ExchangeRowView: View {
func selectAndUpdate(_ button: Int) {
buttonSelected = button // will trigger NavigationLink
- // TODO: while navigation animation runs, contact Exchange to update Fees
+ // TODO: after user tapped a button, while navigation animation runs, contact Exchange to update Fees
+ // cannot be uncommented yet since there is no scopeInfo
// Task { // runs on MainActor
// do {
// try await model.updateExchange(scopeInfo: balance.scopeInfo)
@@ -28,8 +29,6 @@ struct ExchangeRowView: View {
// }
}
-
-// func
func titles(_ title: String) -> (String, String?) {
if let separatorIndex = title.firstIndex(of: "\n") {
let title1 = String(title[..<separatorIndex])
@@ -50,6 +49,7 @@ struct ExchangeRowView: View {
var body: some View {
let depositTitle0 = String(localized: "DepositButton_Short", defaultValue: "Deposit",
comment: "Abbreviation of `Deposit (currency)´")
+ // TODO: deal with \t
let depositTitle1 = String(localized: "Deposit\t\(currency)",
comment: "Button `Deposit (currency)´, must have ONE \\t and ONE %@")
let withdrawTitle0 = String(localized: "WithdrawButton_Short", defaultValue: "Withdraw",