commit 3763ef4cfb33fa03e469d73865a5429d1271a01a
parent faef535e593685bc349be7978d50460229a94f11
Author: Marc Stibane <marc@taler.net>
Date: Thu, 21 Nov 2024 22:07:50 +0100
fix button position
Diffstat:
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift
@@ -118,7 +118,7 @@ extension WithdrawTOSView {
var body: some View {
let title = String(localized: "Language:", comment: "title of ToS language selection")
- List {
+ let list = List {
if tos.tosAvailableLanguages.count > 1 {
Picker(title, selection: $selectedLanguage) {
ForEach(tos.tosAvailableLanguages, id: \.self) { code in
@@ -152,18 +152,20 @@ extension WithdrawTOSView {
}
} // for
} // plain text
- }.safeAreaInset(edge: .bottom) {
- let currentEtag = tos.currentEtag
- let showButton = tos.acceptedEtag == nil ? true
- : tos.acceptedEtag! == tos.currentEtag ? false
- : true
- if showButton {
- Button(String(localized: "Accept Terms of Service", comment: "Button"), action: acceptAction)
+ }.listStyle(myListStyle.style).anyView
+
+ let currentEtag = tos.currentEtag
+ let showButton = tos.acceptedEtag == nil ? true
+ : tos.acceptedEtag! == tos.currentEtag ? false
+ : true
+ let button = Button(String(localized: "Accept Terms of Service", comment: "Button"), action: acceptAction)
.buttonStyle(TalerButtonStyle(type: .prominent))
.padding(.horizontal)
- }
+ list.safeAreaInset(edge: .bottom) {
+ if showButton {
+ button.padding(.bottom, 40)
+ }
}
- .listStyle(myListStyle.style).anyView
}
}
}