[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 03/12: fixedInnerHeight
From: |
gnunet |
Subject: |
[taler-taler-ios] 03/12: fixedInnerHeight |
Date: |
Sun, 29 Sep 2024 10:14:19 +0200 |
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 e6deff7bc4d6cb2a6275078a9ac325c1d5071c31
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Sep 24 12:15:41 2024 +0200
fixedInnerHeight
---
TalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift
b/TalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift
index c7654da..14d2b7f 100644
--- a/TalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift
+++ b/TalerWallet1/Views/HelperViews/View+fixedInnerHeight.swift
@@ -31,12 +31,13 @@ extension View {
@available(iOS 16.0, *)
func fixedInnerHeight(_ sheetHeight: Binding<CGFloat>) -> some View {
padding()
- .background {
+ .overlay { // .background doesn't work
GeometryReader { proxy in
Color.clear.preference(key: InnerHeightPreferenceKey.self,
value: proxy.size.height)
}
}
.onPreferenceChange(InnerHeightPreferenceKey.self) { newHeight in
+// print("InnerHeightPreferenceKey \(newHeight)")
sheetHeight.wrappedValue = newHeight
}
.presentationDetents([.height(sheetHeight.wrappedValue)])
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (e921612 -> 16eefa4), gnunet, 2024/09/29
- [taler-taler-ios] 03/12: fixedInnerHeight,
gnunet <=
- [taler-taler-ios] 02/12: currencyInput, gnunet, 2024/09/29
- [taler-taler-ios] 09/12: filterByState, gnunet, 2024/09/29
- [taler-taler-ios] 01/12: getMaxDepositAmount, getMaxPeerPushDebitAmount, gnunet, 2024/09/29
- [taler-taler-ios] 04/12: cleanup, gnunet, 2024/09/29
- [taler-taler-ios] 06/12: GetMaxPeerPushAmount, gnunet, 2024/09/29
- [taler-taler-ios] 12/12: German localization, gnunet, 2024/09/29
- [taler-taler-ios] 11/12: delete rows (swipeActions), gnunet, 2024/09/29
- [taler-taler-ios] 05/12: dismiss after delete, gnunet, 2024/09/29
- [taler-taler-ios] 07/12: don't beep twice for expirations, gnunet, 2024/09/29
- [taler-taler-ios] 08/12: strikethrough, gnunet, 2024/09/29