Latest 0.0.3
Homepage https://github.com/lieonCX/Refresh
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

Quick Start

override func viewDidLoad() {
    super.viewDidLoad()
    let refresh = LRefreshControl()
    tableView.addSubview(refresh)
    refresh.refreshHandler = {
      /** insert your refresh action here **/
      DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2) {
     /** Do not forget call endRefreshing when loading end **/
        self.refresh.endRefreshing()
      }
    }
}

Environment

Xcode 8 / Swift 3

Installation

pod ‘LRefresh’

Latest podspec

{
    "name": "LRefresh",
    "version": "0.0.3",
    "summary": "Refresh.",
    "description": "RefreshRefreshRefreshRefreshRefreshRefresh",
    "homepage": "https://github.com/lieonCX/Refresh",
    "license": "MIT",
    "authors": {
        "lieon": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/lieonCX/Refresh.git",
        "tag": "0.0.3"
    },
    "source_files": "Source",
    "resources": [
        "Source/*.xib",
        "Source/Icons/*.png"
    ],
    "frameworks": "UIKit",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This