From 6b584ccf650a1f16c6963a5816530849f5c9dbe8 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Fri, 29 May 2026 17:17:31 +0200 Subject: [PATCH] use readHeight instead on geometry change in the top section of the home screen --- .../Sources/Screens/HomeScreen/View/HomeScreenContent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenContent.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenContent.swift index 9d1751977..1715dd028 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenContent.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenContent.swift @@ -128,7 +128,7 @@ struct HomeScreenContent: View { } } .background(Color.compound.bgCanvasDefault) - .onGeometryChange(for: CGFloat.self, of: \.size.height) { topSectionHeight = $0 } + .readHeight($topSectionHeight) } }