commit dab9b3071f101cbdee5c598b361cc31977495042
parent 02c2fa95e42305880be701c746ec21caf2f27f7d
Author: Marc Stibane <marc@taler.net>
Date: Fri, 30 Jun 2023 18:19:28 +0200
ScrollViewReader
Diffstat:
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Views/Exchange/ManualWithdraw.swift b/TalerWallet1/Views/Exchange/ManualWithdraw.swift
@@ -31,6 +31,7 @@ struct ManualWithdraw: View {
// let agePicker = AgePicker(ageMenuList: $ageMenuList, selectedAge: $selectedAge)
ScrollViewReader { scrollView in
+ VStack {
Text("from \(exchange.exchangeBaseUrl.trimURL())")
.font(.title3)
CurrencyInputView(currencyField: currencyField,
@@ -68,6 +69,7 @@ struct ManualWithdraw: View {
}
} // tooMany
} // invalid
+ }
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal)
diff --git a/TalerWallet1/Views/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Peer2peer/RequestPayment.swift
@@ -29,6 +29,7 @@ struct RequestPayment: View {
let currencyField = CurrencyField(value: $centsToTransfer, currency: currency)
ScrollViewReader { scrollView in
+ VStack {
CurrencyInputView(currencyField: currencyField,
title: String(localized: "Amount to receive:"))
@@ -52,6 +53,7 @@ struct RequestPayment: View {
.buttonStyle(TalerButtonStyle(type: .prominent))
.disabled(disabled)
}
+ }
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal)
diff --git a/TalerWallet1/Views/Peer2peer/SendAmount.swift b/TalerWallet1/Views/Peer2peer/SendAmount.swift
@@ -40,7 +40,8 @@ struct SendAmount: View {
let currencyField = CurrencyField(value: $centsToTransfer, currency: currency)
let fee = fee(ppCheck: peerPushCheck)
- ScrollViewReader { scrollView in
+// ScrollViewReader { scrollView in
+ VStack {
let available = amountAvailable.readableDescription
Text("Available: \(available)")
.font(.title3)
@@ -67,7 +68,8 @@ struct SendAmount: View {
.buttonStyle(TalerButtonStyle(type: .prominent))
.disabled(disabled)
}
- }
+ }
+// }
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal)
.background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all))