AnimatedCollectionViewLayout icon indicating copy to clipboard operation
AnimatedCollectionViewLayout copied to clipboard

Any support for infinite scrolling?

Open dkcas11 opened this issue 8 years ago • 10 comments

As the title says. If not, could there be in the future?

Thanks :)

dkcas11 avatar Feb 20 '17 07:02 dkcas11

@dkcas11 Foolish way to set numberOfItems to INT64_MAX 😊

broccolii avatar Feb 20 '17 11:02 broccolii

@broccolii yea i know of that trick, but given that the cells are dequeued to a stack, i will never actually get to reuse the cells correctly but just keep creating them, taking up a lot of memory (theoretical). I haven't researched this completely, but it is my understanding that the cells are simply dequeued.

dkcas11 avatar Feb 20 '17 11:02 dkcas11

These cells will be reused, do not need to consider the memory problem

broccolii avatar Feb 21 '17 02:02 broccolii

Do you have documentation on this? It was my understanding that they did not, given they also must have a unique indexPath, therefore making the cell unique too.

dkcas11 avatar Feb 21 '17 09:02 dkcas11

Sorry for the late. I think it's definitely possible for this library to support infinite scrolling given the fact that the layout can define the size of the collectionView and dynamically change the position of the cells.

I'll add this to the todo list and see if it's easy to do. Thanks for the good idea and PR is always welcome ;)

KelvinJin avatar Feb 23 '17 01:02 KelvinJin

This would be awesome! Especially given the nice animations, a user would easily get lost on browsing the cells endlessly :)

dkcas11 avatar Feb 23 '17 09:02 dkcas11

Have you looked into this? :)

dkcas11 avatar Mar 14 '17 08:03 dkcas11

@dkcas11 Unfortunately nope. I've been busy working on a new project for a new job. 😢

KelvinJin avatar Mar 15 '17 06:03 KelvinJin

@KelvinJin No worries, good luck on the job :)

dkcas11 avatar Mar 15 '17 07:03 dkcas11

Is someone working on this?

BilalReffas avatar Apr 24 '17 21:04 BilalReffas