How to Provide the UPScroll in UICollectionView using swift 3

Updated 4 July 2023

Save

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.

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home