How to Provide the UPScroll in UICollectionView using swift 3

UPScroll in UICollectionView

Sometimes we need to provide the Upscroll in UICollectionView, when we scroll down to UICollectionView approx seeing 100 or 200 items than again to come up we need to scroll upside at same time so it’s better to provide the icon where we go down at some count we can show the icon ,or on up we can hide the icon.

For this we need to do like that:

 

1: First we need to set icon in mainView:

1:  we need to observe on each scroll like that :

 

3: So now we have to define the touch event of icon:

4: On click, we directly come to the first cell.

 

 

 

 

 

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close