use readHeight instead on geometry change in the top section of the home screen

This commit is contained in:
Mauro Romito
2026-05-29 17:17:31 +02:00
parent 63d33efb5e
commit 6b584ccf65
@@ -128,7 +128,7 @@ struct HomeScreenContent: View {
} }
} }
.background(Color.compound.bgCanvasDefault) .background(Color.compound.bgCanvasDefault)
.onGeometryChange(for: CGFloat.self, of: \.size.height) { topSectionHeight = $0 } .readHeight($topSectionHeight)
} }
} }