https://developer.apple.com/documentation/swiftui/view/onscrollgeometrychange%28for%3Aof%3Aaction%3A%29
onScrollGeometryChange(for:of:action:) | Apple Developer Documentation
Adds an action to be performed when a value, created from a scroll geometry, changes.
apple developeractiondocumentation