XYRefresh 1.0.2

XYRefresh 1.0.2

Maintained by RayJiang16.



XYRefresh 1.0.2

  • By
  • RayJiang

XYRefresh

An easy way to use pull-to-refresh

Requirements

  • iOS 10.0+
  • Xcode 10.1+
  • Swift 4.2+

Installation

github "RayJiang16/XYRefresh"
pod 'XYRefresh'

Usage

Quick Start

import XYRefresh

final class TableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        tableView.refresh.header = RefreshNormalHeader { [weak self] in
            self?.tableView.refresh.header?.endRefreshing()
        }
        tableView.refresh.footer = RefreshAutoStateFooter { [weak self] in
            self?.tableView.refresh.footer?.endRefreshing()
        }
    }
}

License

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