Skip to content

urklc/UKPullToRefresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UKPullToRefresh

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.

Installation

Carthage

To install with Carthage, simply add this in your Cartfile:

github "urklc/UKPullToRefresh"

Usage

tableView.addPullToRefresh(to: .bottom) { [unowned self] () -> (Void) in
     // .....
     tableView.pullToRefreshView.state = .stopped
}

Credits

A simplified and Swift based version of SVPullToRefresh .

License

MIT License