Add Pull To Refresh to your iOS app using Swift
- October 08, 2019
- John Codeos
Today, I’ll show you how to add Pull To Refresh into your UITableView/UICollectionView very easy.
Adding Pull To Refresh in TableView/CollectionView
We already have an UITableView/UICollectionView filled with data, and we want to add the Pull To Refresh feature.
The only thing we have to do is to create an UIRefreshControl and add it into our UITableView/UICollectionView and trigger a method, to refresh the data, every time we swipe down.
…and that’s all! Easy, huh???
You can find the final project here
If you have any questions feel free to DM me on Twitter @johncodeos or leave a comment below!