README and documentationIGListKit version: 2.1.0For UICollectionView we can get e.g. collectionView.contentOffset.y value from scrollViewDidScroll(_ scrollView: UIScrollView), but is there any way to get a content offset value when using IGListCollectionView?
I need it in order to manipulate constraints and/or view positions on other views based on scroll.
Any help is much appreciated.
I started asking in #158 due to its relevance, but as it's closed I created a new issue. Hope that's okay.
@HumidBrains i think you can still receive UIScrollViewDelegate callbacks if you specify an object for the scrollViewDelegate property on your list adapter.
Thanks @jamieQ, this was embarrassingly simple :)
For others who are as confused as I am, just make sure the adapter is your scrollview delegate by adding adapter.scrollViewDelegate = self and you're good to go.
So then you can do e.g.
func scrollViewDidScroll(_ scrollView: UIScrollView) {
print(collectionView.contentOffset.y)
}
Most helpful comment
Thanks @jamieQ, this was embarrassingly simple :)
For others who are as confused as I am, just make sure the adapter is your scrollview delegate by adding adapter.scrollViewDelegate = self and you're good to go.
So then you can do e.g.
func scrollViewDidScroll(_ scrollView: UIScrollView) { print(collectionView.contentOffset.y) }