Scroll position resets when navigating back to previous route
Steps to recreate
- Have enough channels so that scrolling down is possible
- Scroll down and select a channel
- Navigate back, see scroll position snap to top when view re-mounts
Likely requires upstream changes in https://github.com/liveview-native/liveview-client-swiftui
cc @bcardarella
@jtormey Carson and I were talking about this today, there is a possible solution for < iOS 18 but considering that iOS 18 will be out in early September and iOS adoption rate is usually very high we've decided to punt in favor of the iOS >= 18 implementation that will come in LVN v0.4.
I'd be open to debating the merits of this decisoin if someone can show good data on slower than accepted adoption rate or if there are good reasons why some apps or organizations cannot use iOS 18 when it is available.
Sorry, didn't mean to close on your repo 😱
This is the branch that enables it https://github.com/liveview-native/liveview-client-swiftui/pull/1389
Thank you for the quick response! I'll close this once I update the app to iOS 18 and confirm the fix.
Scroll restoration is implemented for all iOS versions support by LVN in this PR: https://github.com/liveview-native/liveview-client-swiftui/pull/1394