Swift pull to refresh and infinite scrolling finally met for your favorites UITableView & UICollectionView
- Pull to refresh
- Infinite scroll
- UITableView / UICollectionView compatibility
- Vertical / horizontal support
##Pull to refresh
tableView.addPullToRefreshWithActionHandler { () -> Void in
// TODO
self.tableView.stopPullToRefresh()
}
tableView.pullRefreshColor = UIColor.darkGrayColor()
##Infinite scroll
tableView.addInfiniteScrollingWithActionHandler { () -> Void in
// TODO
self.tableView.infiniteScrollingView.stopAnimating()
}
tableView.infiniteScrollingView.color = UIColor.darkGrayColor()
##Requirements
- iOS 8.0+
Hugues Blocher
HWPullToInfinity is available under the MIT license.