Latest 1.0
License MIT
Platforms ios 8.0

Like this project? Star us above!

Pull to refresh is one of most frequently feature to be used in the all of apps, this component provides a easiest way to add pull to refresh feature for your table view.



[中文]() (TBD)


  • There is a sample to demonstrate how to use this component easily. {
    // Call data api from remote server.
        get("") { dataList in
        // Update table view datasource
        self.tableView.datasource = dataList
        // Finish refresh  

As you saw above, we can simply enable this component for our table view, we may need to configure the tint color of the pull refresh view’s background by: = UIColor.brown

Finally, we should call the remove() method in the view controller’s deinit

deinit {

Usage Example

Check out the Sample project in the example directory to see more.


There are two approach to add CocoRongPullToRefresh to your exist project.


CocoaPods is the recommended way to add CocoRongPullToRefresh to your project.

  1. Add additional entry to your Podfile.

    pod "CocoRongPullToRefresh", "~> 1.0"
  2. Install Pod(s) running pod install command.
  3. Include CocoRongPullToRefresh using import CocoRongPullToRefresh.

Manual Install

Run below command in

$ git clone

or download directly, then copy CocoRongPullToRefresh folder and add reference to your project.


Requires Swift 3.0 and iOS 8.0 and ARC.

Using CocoRongPullToRefresh?

If you’re using CocoRongPullToRefresh in one of your own projects, let me know! I’ll add a link to your profile/website/app right here on the front page. Feel free to email me at the address shown below.


Forks, patches and other feedback are welcome.


I’m Mellong, you can contact me by E-Mail: [email protected]



Learn more? Follow my WeChat public account mellong:

WeChat QRcode


MIT License

Latest podspec

    "name": "CocoRongPullToRefresh",
    "version": "1.0",
    "license": "MIT",
    "summary": "A simple pull to refresh component for iOS written in Swift.",
    "homepage": "",
    "social_media_url": "",
    "authors": {
        "Mellong": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "CocoRongPullToRefresh/*.swift",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.0"
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This