arcgis-maps-sdk-swift-toolkit
arcgis-maps-sdk-swift-toolkit copied to clipboard
Use `onScrollGeometryChange(for:of:action:)` where applicable on `ScrollView`s
trafficstars
iOS 18 adds onScrollGeometryChange(for:of:action:)
From What's new in SwiftUI - WWDC '24:
There are a bunch of new APIs to give you fine grained control of your scroll views. You can now have deeper level of integration with the state of a ScrollView with .onScrollGeometryChange, which lets you performantly react to changes in things like content offsets, content size and more.
Here are the current uses of ScrollView in the Toolkit.