Reputation: 18875
I am trying to use IGListKit
(Link) in iOS to render custom collection view and table view, where I have a horizontal scrollview in a section controller. In this horizontal scrollview, I need to get the index of the currently visible cells.
I tried to use the displayDelegate
in the section controller, but it seems to me that the following delegate method is triggered only once when the section controller is initially loaded:
func listAdapter(_ listAdapter: IGListAdapter, willDisplay sectionController: IGListSectionController, cell: UICollectionViewCell, at index: Int)
So I was wondering if there's a way in IGListKit
to get the index of the currently visible cells. Thanks!
Upvotes: 1
Views: 1881
Reputation: 21
Did you checked IGListAdapter's Visible Objects and Visible SectionController functions?
Upvotes: 2