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) } }