gnunet-svn
[Top][All Lists]
Advanced

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



reply via email to

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