TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2016 |
SPMSupports SPM | ✗ |
Maintained by Snowgan.
XLRefreshSwift give you an easy way to add pull-to-refresh in UIScrollView.
XLRefreshSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'XLRefreshSwift', '~> 0.2.0'
Adding pull-to-refresh header to a subclass of UIScrollView by setting its xlheader property. You can customize the refresh action when initialize a XLRefreshHeader object.
tableView.xlheader = XLRefreshHeader(action: {
// Put anything you want to do when refreshing
// Please call UIScrollView's method endHeaderRefresh() when you want to end refreshing status
})
Adding pull-to-load-more footer to a subclass of UIScrollView by setting its xlfooter property. You can customize the load more action when initialize a XLRefreshFooter object.
tableView.xlfooter = XLRefreshFooter(action: {
// Put anything you want to do when loading
// Please call UIScrollView's method endFooterRefresh() when you want to end loading status
})
Snowgan, [email protected]
XLRefreshSwift is available under the MIT license. See the LICENSE file for more info.