An example can be found here
https://www.fatbobman.com/posts/coreDataWithCloudKit-2/
Post
Replies
Boosts
Views
Activity
I have tried your code on iOS 17.0.1 and iOS 17.4 simulators. It fails to maintain the content offset when prepend, append, remove first, remove last. The scroll position doesn't work at all
None of the codes in this page works. They cannot keep the scroll position at all.