Latest 0.8.1
Homepage https://github.com/Pircate/EasyRefresher
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.0
  • Swift 4.2

Installation

EasyRefresher is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'EasyRefresher'

Demo

EasyRefresher

Usage

  • Add Refresher
tableView.refresh.header.addRefreshClosure {
    self.reqeust {
        self.tableView.refresh.header.endRefreshing()
    }
}

tableView.refresh.footer = AutoRefreshFooter {
    self.reqeust {
        self.tableView.refresh.footer.endRefreshing()
    }
}
  • Manual Trigger
tableView.refresh.header.beginRefreshing()
  • State Title
tableView.refresh.header.setTitle("loading...", for: .refreshing)
  • UIActivityIndicatorView Style
tableView.refresh.header.activityIndicatorStyle = .white
  • Custom State View
extension CustomStateView: RefreshStateful {

    public func refresher(_ refresher: Refresher, didChangeState state: RefreshState) {

    }
}

tableView.refresh.footer = AppearanceRefreshFooter(stateView: CustomStateView()) {
    self.reqeust {
        self.tableView.refresh.footer.endRefreshing()
    }
}

Author

Pircate, [email protected]

License

EasyRefresher is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "EasyRefresher",
    "version": "0.8.1",
    "summary": "A refresh control for UIScrollView.",
    "homepage": "https://github.com/Pircate/EasyRefresher",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Pircate": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Pircate/EasyRefresher.git",
        "tag": "0.8.1"
    },
    "source_files": "EasyRefresher/Classes/**/*",
    "resource_bundles": {
        "EasyRefresher": [
            "EasyRefresher/Assets/*.xcassets",
            "EasyRefresher/Assets/**/*.strings"
        ]
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_versions": [
        "4.2",
        "5.0",
        "5.0"
    ],
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This