[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 156/204: fix button position
From: |
gnunet |
Subject: |
[taler-taler-ios] 156/204: fix button position |
Date: |
Thu, 05 Dec 2024 23:52:04 +0100 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 3763ef4cfb33fa03e469d73865a5429d1271a01a
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Nov 21 22:07:50 2024 +0100
fix button position
---
.../WithdrawBankIntegrated/WithdrawTOSView.swift | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git
a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift
b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift
index 8ba2bca..8db3538 100644
--- 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
}
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 143/204: prepare split, (continued)
- [taler-taler-ios] 143/204: prepare split, gnunet, 2024/12/05
- [taler-taler-ios] 141/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 149/204: summary for p2p, gnunet, 2024/12/05
- [taler-taler-ios] 147/204: layout improvement, gnunet, 2024/12/05
- [taler-taler-ios] 155/204: ensure to pay only ONCE, gnunet, 2024/12/05
- [taler-taler-ios] 162/204: KnownBankAccounts, gnunet, 2024/12/05
- [taler-taler-ios] 159/204: getTransactionById, gnunet, 2024/12/05
- [taler-taler-ios] 178/204: remove etag, gnunet, 2024/12/05
- [taler-taler-ios] 148/204: dismiss only if done, gnunet, 2024/12/05
- [taler-taler-ios] 146/204: smaller tx icon in lists, gnunet, 2024/12/05
- [taler-taler-ios] 156/204: fix button position,
gnunet <=
- [taler-taler-ios] 168/204: wording, gnunet, 2024/12/05
- [taler-taler-ios] 170/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 169/204: debug, gnunet, 2024/12/05
- [taler-taler-ios] 138/204: recvDisabled, gnunet, 2024/12/05
- [taler-taler-ios] 172/204: a11y for tabBar, gnunet, 2024/12/05
- [taler-taler-ios] 173/204: update after +, gnunet, 2024/12/05
- [taler-taler-ios] 174/204: only in debug mode, gnunet, 2024/12/05
- [taler-taler-ios] 176/204: cleanup, comments, gnunet, 2024/12/05
- [taler-taler-ios] 179/204: Bump version to 0.13.8 (0.13.13), gnunet, 2024/12/05
- [taler-taler-ios] 180/204: Comparable, gnunet, 2024/12/05