LGMagicRefresh 0.1.3

LGMagicRefresh 0.1.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2016
SPMSupports SPM

Maintained by jamy0801.



  • By
  • jamy0801

Usage

LGMagicRefresh集合了多种炫酷刷新样式,几行代码就可以实现,基于swift2.0实现,代码简单易用,具体效果可以查看下面的示例图,如果你喜欢的话,欢迎给个star,嘻嘻,另外,你可以可以加入QQ群:469492027,一起探讨swift,期待大神你的加入~~~ To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "LGMagicRefresh"

how to use

1:使用默认的加载页面,配合loading view:

    tableView.lg_addHeadRefresh(indicatorType, actionHandler: action)

其中indicatorType可以是下面几种类型:

    case Default = 1
    case Line
    case BallScale
    case LineScale
    case BallRotate
    case BallGird
    case BallScaleRotate
    case BallRotateChase
    case Snow
    case TwoBallRotate

2: 自定义加载和load view:

    let view = LGMagicRefreshBallRotateView()
    tableView.lg_addHeadRefresh(view, showState: false, showTime: false, actionHandler: action)

其中view只要继承LGMagicRefreshLoadingView类并实现方法即可~~

preView

(自定义loading)

(仿喜马拉雅APP效果)

(仿大众点评效果)

(自定义图片)

()

()

()

(苹果录音效果)

(邮箱大师)

(9宫格)

(旋转)

(粒子效果)

(集成webview)

Author

jamy0801, [email protected]

License

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