Latest 1.0.1
Homepage https://github.com/121372288/Refresh
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

TheRefresh

TheRefresh 是针对swift 刷新控件

引入项目

pod 'TheRefresh'

Requirements

  • iOS 8.0+
  • Swift 4.2+

使用方法

import TheRefresh 导入项目

    // 增加头部刷新控件
    tableView.ml.add(optional: .header(.normal)) {
        // 开始刷新  
    }

    // 增加底部刷新控件
    tableView.ml.add(optional: .footer(.normal)) {
        // 开始刷新  
    }
// 结束头部刷新动画
tableView.ml.header?.endRefresh()
// 结束底部刷新动画
tableView.ml.footer?.endRefresh()
或者 添加自定义视图

tableView.ml.add(optional: .header(.custom(<#自定义的刷新视图#>))) {

}

Latest podspec

{
    "name": "TheRefresh",
    "version": "1.0.1",
    "summary": "UIScrollView Refresh control for  swift4.2",
    "description": "UIScrollView Refresh control for swift4.2nu4e0bu62c9u5237u65b0u548cu4e0au62c9u52a0u8f7du66f4u591au7684u63a7u5236u5668",
    "homepage": "https://github.com/121372288/Refresh",
    "license": "MIT",
    "authors": {
        "121372288": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/121372288/Refresh.git",
        "tag": "1.0.1"
    },
    "swift_version": "4.2",
    "source_files": [
        "Refresh/**/*.swift",
        "Refresh/*.swift"
    ],
    "resources": "Refresh/Refresh.bundle",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This