A simple pull-to-refresh solution for UIScrollView, supports UITableView and UICollectionView.
iOS doesn't have built-in refresh control support for pulling up. This solution can be used with both pulling-up and down.
To install with Carthage, simply add this in your Cartfile
:
github "urklc/UKPullToRefresh"
tableView.addPullToRefresh(to: .bottom) { [unowned self] () -> (Void) in
// .....
tableView.pullToRefreshView.state = .stopped
}
A simplified and Swift based version of SVPullToRefresh .
MIT License