diff options
author | Marc Stibane <marc@taler.net> | 2023-11-06 19:47:49 +0100 |
---|---|---|
committer | Marc Stibane <marc@taler.net> | 2023-11-06 19:47:49 +0100 |
commit | 03bb845429ae4b241e97a56fdc7394e02d35324d (patch) | |
tree | fefa9292017e29579528f8a886517009d74fe205 | |
parent | 82b542709c6848b2fd19f7eda5ec88ed3fb72c38 (diff) | |
download | taler-ios-03bb845429ae4b241e97a56fdc7394e02d35324d.tar.gz taler-ios-03bb845429ae4b241e97a56fdc7394e02d35324d.tar.bz2 taler-ios-03bb845429ae4b241e97a56fdc7394e02d35324d.zip |
Debugging
-rw-r--r-- | TalerWallet1/Views/Balances/PendingRowView.swift | 4 | ||||
-rw-r--r-- | TalerWallet1/Views/Exchange/ExchangeRowView.swift | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/TalerWallet1/Views/Balances/PendingRowView.swift b/TalerWallet1/Views/Balances/PendingRowView.swift index ffe1c7d..c312006 100644 --- 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 index 2e8aaf3..0ed21cb 100644 --- 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", |