Closed gzlboy closed 3 weeks ago
Do you mean that when a scroll event ends and the offset stops updating?
Yes!I find a repository that implemented this feature: https://github.com/fatbobman/IsScrolling
In addition to the scrolling state, it will be better if i can get the scrolling direction:)
Would be cool to support! I'll take a look when I get around to this project, and can meanwhile approve and merge any PR that fixes this.
Thanks! Look forward to this feature:)
@gzlboy If you have the possibility to use iOS 18 and macOS 15, it has a new .onScrollPhaseChange
modifier:
.onScrollPhaseChange { _, newPhase in
...
}
Since the SDKs scroll views use regular ScrollView
underneath, you should be able to add this modifier to its content.
Since there is a native way to do this now, I will not add this to the SDK, and will thus close this issue. If you miss some feature in the SDK to be able to use it, please let me know.
I want to do something when scroll was finished.How can I do this? Thanks!