Save ScrollViews position and scroll back to it later (offset to position)
You don’t need actually offset in this scenario, just store id of currently visible view (you can use any appropriate algorithm for your data of how to detect it) and then scroll to view with that id. Here is a simplified demo of possible approach. Tested with Xcode 12.1/iOS 14.1 struct TestScrollBackView: View { @State … Read more