taler-ios

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

commit 6225381a23fd837758103d579a83abca3bb24f61
parent 02d7a4a2b2b23545a6353b42c2efe637516b3633
Author: Marc Stibane <marc@taler.net>
Date:   Wed, 11 Sep 2024 08:05:16 +0200

fix fixedInnerHeight

Diffstat:
MTalerWallet1/Views/Actions/ActionsSheet.swift | 5+++--
MTalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift | 2+-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift b/TalerWallet1/Views/Actions/ActionsSheet.swift @@ -36,6 +36,7 @@ struct ActionsSheet: View { Text("You can spend your \(DEMOCURRENCY) in the Demo shop, or send them to another wallet.") .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") @@ -54,7 +55,7 @@ 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, 10) + .padding(.bottom, 20) } SendRequestV(stack: stack.push(), @@ -71,7 +72,7 @@ struct ActionsSheet: View { // scopeInfo: balance.scopeInfo, // amountAvailable: balance.available, amountToTransfer: $amountToTransfer) // does still have the wrong currency - .padding(.bottom, 32) + .padding(.bottom, 12) } .task { print("ActionsSheet.task❓HideTabBarView") diff --git a/TalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift b/TalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift @@ -23,7 +23,7 @@ import SwiftUI import UIKit struct InnerHeightPreferenceKey: PreferenceKey { - static var defaultValue: CGFloat = 400 + static var defaultValue: CGFloat = 200 static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = nextValue() }