Latest 0.2.1
Homepage https://github.com/Snowgan/XLRefreshSwift
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

Version
License
Platform

XLRefreshSwift give you an easy way to add pull-to-refresh in UIScrollView.

Installation

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

pod 'XLRefreshSwift', '~> 0.2.0'

Usage

Pull-to-refresh Header

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
})

Pull-to-load-more Footer

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
})

Author

Snowgan, [email protected]

License

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

Latest podspec

{
    "name": "XLRefreshSwift",
    "version": "0.2.1",
    "summary": "Pull to refresh or load more by Swift.",
    "description": "This CocoaPod provides the subclass of UIView which can be pulled to refresh or load more.",
    "homepage": "https://github.com/Snowgan/XLRefreshSwift",
    "license": "MIT",
    "authors": {
        "Snowgan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Snowgan/XLRefreshSwift.git",
        "tag": "0.2.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "XLRefreshSwift": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This