taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 043fa214c0000b4a22e3e49d45e3fcd3d0f0581a
parent 42930a6d126ab1d7b017cfdbfd34b968bd25efd3
Author: Marc Stibane <marc@taler.net>
Date:   Wed, 25 Sep 2024 09:28:17 +0200

dropBar, padding

Diffstat:
MTalerWallet1/Views/Actions/ActionsSheet.swift | 22+++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)

diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift b/TalerWallet1/Views/Actions/ActionsSheet.swift @@ -35,20 +35,11 @@ struct ActionsSheet: View { var body: some View { VStack { - HStack(spacing: 0) { - let width = UIScreen.screenWidth / 3 - let height = 4.0 - Rectangle() - .opacity(0.001) - .frame(width: width, height: height) - RoundedRectangle(cornerRadius: 2) - .foregroundColor(.primary) - .frame(width: width, height: height) - Rectangle() - .opacity(0.001) - .frame(width: width, height: height) - } // drop bar - .listRowSeparator(.hidden) + let width = UIScreen.screenWidth / 3 + RoundedRectangle(cornerRadius: 8) // dropBar + .foregroundColor(.primary) + .frame(width: width + 6.5, height: 5) + .padding(.bottom, 10) if hasKudos { if !minimalistic && showSpendingHint { @@ -56,7 +47,6 @@ struct ActionsSheet: View { .talerFont(.body) .multilineTextAlignment(.leading) .fixedSize(horizontal: false, vertical: true) // must set this otherwise fixedInnerHeight doesn't work - .listRowSeparator(.hidden) } let title = String(localized: "LinkTitle_DEMOSHOP", defaultValue: "Spend demo money") let action = { @@ -74,7 +64,6 @@ struct ActionsSheet: View { } .buttonStyle(TalerButtonStyle(type: .bordered, narrow: false, aligned: .center)) .accessibilityHint(String(localized: "Will go to the demo shop website.")) - .listRowSeparator(.hidden) .padding(.bottom, 20) } @@ -87,7 +76,6 @@ struct ActionsSheet: View { DepositWithdrawV(stack: stack.push(), balances: $balances, amountToTransfer: $amountToTransfer) // does still have the wrong currency - .padding(.bottom, 12) } } }