Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

How does Flix handle scroll ? #19

Open
10000TB opened this issue Jul 28, 2018 · 2 comments
Open

How does Flix handle scroll ? #19

10000TB opened this issue Jul 28, 2018 · 2 comments

Comments

@10000TB
Copy link

10000TB commented Jul 28, 2018

TL;DR
How does Flix handle scroll activity ? or does it provide sth like didScroll, didEndScroll, etc. ?

More:
When I was trying to figure the above out, more things came to me:
I found that if I set collectionView to current viewcontroller where all cells are built for, then all cells are messed up, so guessing the delegate for either tableview/collectionview is set somewhere, but cant seem to find it.
The actual delegate be set to is: RxCocoa.RxCollectionViewDelegateProxy , any idea to port that to current view controller where we need to build nodes/cells ?

@DianQK
Copy link
Owner

DianQK commented Jul 31, 2018

you can use collectionView.rx.didScroll.

@10000TB 10000TB closed this as completed Aug 3, 2018
@10000TB 10000TB reopened this Aug 3, 2018
@10000TB
Copy link
Author

10000TB commented Aug 3, 2018

Hey @DianQK would it be good if we add in a new section in main README to briefly document this ? so that new people who jumped in Flix won't be confused on where to find delegate methods when they are not familiar with rx.

I can make a PR, :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants