CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ | 
| LangLanguage | SwiftSwift | 
| License | MIT | 
| ReleasedLast Release | Jan 2018 | 
| SPMSupports SPM | ✗ | 
Maintained by Joshua Tessier.
ElasticPullToRefresh is a very simple and slightly customizable pull to refresh control that has a spinner.
Use Cocoapods: pod 'ElasticPullToRefresh'
Import the module where necessary, import ElasticPullToRefresh
Use the ElasticPullToRefresh wrapper to wrap your UIScrollView or UITableView (or anything else that scrolls. Do not manually add that UIScrollView or UITableView to the view hiearchy. Add the ElasticPullToRefresh wrapper instead.
override func loadView() {
  let tableView = UITableView()
  let wrapper = ElasticPullToRefresh(scrollView: tableView)
  view = wrapper
}
Set a didPullToRefresh block. Use this to trigger your downloads. When you're done, call didFinishRefreshing(). That's it!
wrapper.didPullToRefresh = {
  downloadData()
  ...
  //call when done loading
  wrapper.didFinishRefreshing()
}