Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement Infinity scroll ? #96

Closed
lohenyumnam opened this issue Sep 13, 2018 · 1 comment
Closed

How to implement Infinity scroll ? #96

lohenyumnam opened this issue Sep 13, 2018 · 1 comment

Comments

@lohenyumnam
Copy link

Hello guys, this framework seems to be cool. I have a few questions.

  1. In the CollectionKitExample there is an example "ArticleExample" can you guys tell me if its possible to add infinite scrolling? if yes how?
  2. Is this framework production ready?
@lkzhao
Copy link
Collaborator

lkzhao commented Sep 17, 2018

  1. just implement scrollViewDidScroll and observe the contentOffset. if it reaches the end, update your provider's dataSource to include more data.

Checkout the Chat example. It shows you how to do infinite scroll. The example is probably more complicated than what you need since it is loading more data at the top. if you are loading more data at the bottom it is easier.

  1. It is production ready. I have used it in Bitmoji app. which is the most downloaded app last year.

@lkzhao lkzhao closed this as completed Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants