commit 58e1887689022a0bf836402716fb118bccabce97
parent 0b95f6758ec25129edf074c16ac5cf67a1a8baf5
Author: Marc Stibane <marc@taler.net>
Date: Sun, 30 Mar 2025 22:22:45 +0200
make ready for overlay
Diffstat:
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/TalerWallet1/Views/Balances/BalancesListView.swift b/TalerWallet1/Views/Balances/BalancesListView.swift
@@ -46,22 +46,24 @@ struct BalancesListView: View {
await refresh()
}
} else {
- List(controller.balances, id: \.self) { balance in
- BalancesSectionView(stack: stack.push("\(balance.scopeInfo.currency)"),
- balance: balance, // this is the currency to be used
- selectedBalance: $selectedBalance,
- sectionCount: count,
- amountToTransfer: $amountToTransfer, // does still have the wrong currency
- summary: $summary,
- reloadTransactions: $reloadTransactions)
- }
- .onAppear() {
- DebugViewC.shared.setViewID(VIEW_BALANCES, stack: stack.push("onAppear"))
- selectedBalance = nil
- }
- .listStyle(myListStyle.style).anyView
- .refreshable {
- await refresh()
+ Group {
+ List(controller.balances, id: \.self) { balance in
+ BalancesSectionView(stack: stack.push("\(balance.scopeInfo.currency)"),
+ balance: balance, // this is the currency to be used
+ selectedBalance: $selectedBalance,
+ sectionCount: count,
+ amountToTransfer: $amountToTransfer, // does still have the wrong currency
+ summary: $summary,
+ reloadTransactions: $reloadTransactions)
+ }
+ .onAppear() {
+ DebugViewC.shared.setViewID(VIEW_BALANCES, stack: stack.push("onAppear"))
+ selectedBalance = nil
+ }
+ .listStyle(myListStyle.style).anyView
+ .refreshable {
+ await refresh()
+ }
}
.fullScreenCover(isPresented: $controller.oimModeActive) {
let balance = controller.balances.first