You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there.
In my Photozeen iOS app I'm loading more images to the photo feed as user scrolls it down. Every time I have new portion of images from server I add them to the collection by calling insertItemsAtIndexPaths.
I see that items are getting rearranged every time. What can I do to make previously loaded items stay still except adding new section for every new portion of images?
The text was updated successfully, but these errors were encountered:
Are you adding every new batch of items to a different section, or are all the images in the same section. The layout is calculated per section, so adding a new section should allow the previous section to remain unchanged. Although I'm not sure if it would redo the calculation for the previous sections as well.
Yes, currently I'm using only one section and was looking for workaround without adding new section for every new batch. But looks like it is the only solution, am I right?
That's right. The implementation of the layout algorithm is such that it tries to determine the best possible layout based on every image in a section, so every time you add a new image it is likely to affect the layout.
Hi there.
In my Photozeen iOS app I'm loading more images to the photo feed as user scrolls it down. Every time I have new portion of images from server I add them to the collection by calling insertItemsAtIndexPaths.
I see that items are getting rearranged every time. What can I do to make previously loaded items stay still except adding new section for every new portion of images?
The text was updated successfully, but these errors were encountered: