This is a quick Blog post to annouce the new iOS library ‘PullUpToRefresh’ , written in Swift that add a pull from the bottom capability to UITableview.
How to install it ?
You could install it by adding this line to your Podfile :
pod 'PullUpToRefresh'
How to use it ?
- Set your tableview custom Class to
PullUpToRefreshTableview
- Implement the
PullUpToRefreshTableviewDelegate
in yourUIViewController
Customization
-
bottomView
: the view at the bottom that will be shown when refreshing
differenceThreshold
: set how much you want to scroll in the bottom in order to show the bottom viewrefreshThreshold
: set how much you want to scroll in the bottom in order to start refreshing
For more information about PullUpToRefresh, please visit PullUpToRefresh Github repository.
If you have any questions or suggestions, please do not hesitate to contact me.