Update the library for the new SwiftUI scroll capabilities
As SwiftUI has added more native scroll capabilities, such as being able to get the scroll offset, the library should be updated to use these native capabilities, instead of relying on the current custom implementations.
Since this involves using features that are only available in iOS 17 and 18 (and corresponding versions on other platforms) this will involve a major version bump.
@danielsaidi I tried to use the new onScrollGeometryChange, but I noticed that both solutions do not produce the same result.
Hi @LACHKAR99ZAKARIA
Sorry for the late reply.
I am still waiting to find time to look at this.
Does it work if you use the new ScrollViewReader and its proxy?
@danielsaidi I just tried it, and it seems to be working. I’ve sent a merge request.
That's awesome! I'll take a look.
Thank you @LACHKAR99ZAKARIA - I've merged this and will create a. patch update for it.
@LACHKAR99ZAKARIA I unfortunately noticed that this doesn't work. When using this code in the demo app, none of the sticky headers work. I have pushed some concurrency changes to the main branch, in case you want to take another stab at it.
Ok @danielsaidi i will try to fix it