Latest 1.1.0
Homepage https://github.com/lixiguang/LXGRefresh
License MIT
Platforms ios 9.0
Authors

Elastic pull to refresh compontent developed in Swift

Image

Requirements

  • Xcode 7 or higher
  • iOS 9.0 or higher (may work on previous versions, just did not test it)
  • ARC
  • Swift 4.0

    Requirements

    Open and run the LXGRefreshExample project in Xcode to see LXGRefresh in action.

    Installation

    cocoapod

        platform :ios, ‘9.0’
        target ‘test’ do
        pod ‘LXGRefresh’

        end

    than

         pod install

Example usage

  tableView.lxg_addRefreshWithActionHandle(true, headerActionHandle: {
         //headeraction
         //do your network request
         //when the data returns please do
          self.tableView.lxg_stopLoading()

    }, footerIsOpen: true) {
        //footeraction

        }

there are two type of loadingview you can choose,you can use this method to change loadingtype

 tableView.loadingviewType = LXGRrfreshConstants.loadingType.Circle

Latest podspec

{
    "name": "LXGRefresh",
    "version": "1.1.0",
    "summary": "Lightweight refresh control",
    "description": "you can refresh tableview easily by using it",
    "homepage": "https://github.com/lixiguang/LXGRefresh",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "lixiguang": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/lixiguang/LXGRefresh.git",
        "tag": "0.0.3"
    },
    "source_files": [
        "LXGRefresh/LXGRefresh",
        "*.{swift}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This