gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]