commit 2b12e15b7d0bd11becb6a59a7723c7dbdf91f3e3
parent 1226ff53697984162bea522316accc8baf39734e
Author: Marc Stibane <marc@taler.net>
Date: Wed, 18 Nov 2026 12:16:54 +0100
prepare exchange details
Diffstat:
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/TalerWallet1/Views/Settings/Exchange/ExchangeRowView.swift b/TalerWallet1/Views/Settings/Exchange/ExchangeRowView.swift
@@ -22,6 +22,7 @@ struct ExchangeRowView: View {
@EnvironmentObject private var tabBarModel: TabBarModel
@State private var isUpdated: Bool = false
+ @State private var detailView: Int? = nil
var body: some View {
#if PRINT_CHANGES
@@ -42,9 +43,17 @@ struct ExchangeRowView: View {
chevron
}
let rowView = VStack(alignment: .leading) {
- Text(baseURL.trimURL)
- .talerFont(.headline)
- ExchangeStatus(exchange: exchange)
+ VStack(alignment: .leading) {
+ Text(baseURL.trimURL)
+ .talerFont(.headline)
+ ExchangeStatus(exchange: exchange)
+ }
+ .background { // only needed for .onTapGesture
+ Color.gray.opacity(INVISIBLE)
+ }
+ .onTapGesture {
+ detailView = index
+ }
termsLine
.talerFont(.body)
.background { // only needed for .onTapGesture
@@ -58,15 +67,16 @@ struct ExchangeRowView: View {
exchangeBaseUrl: baseURL,
shouldDismiss: true, // pop back to here
viewID: VIEW_WITHDRAW_TOS)
- let details = ExchangeDetailView(stack: stack.push(),
+ let details = ExchangeDetailView(stack: stack.push(), // TODO: show exchange details
exchange: exchange)
- let actions = Group {
+ let tosActions = Group {
+// NavLink(index, $detailView) { details }
NavLink(index, $tabBarModel.tosView) { showToS }
}
Group {
rowView
- .background(actions)
+ .background(tosActions)
if developerMode {
HStack {