Esri / arcgis-maps-sdk-swift-toolkit

Mapping components that will simplify your Swift app development with the ArcGIS Maps SDK for Swift.
https://developers.arcgis.com/swift
Apache License 2.0
29 stars 9 forks source link

Use `onScrollGeometryChange(for:of:action:)` where applicable on `ScrollView`s #870

Open dfeinzimer opened 2 months ago

dfeinzimer commented 2 months ago

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.