TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2016 |
SPMSupports SPM | ✗ |
Maintained by jamy0801.
LGMagicRefresh集合了多种炫酷刷新样式,几行代码就可以实现,基于swift2.0实现,代码简单易用,具体效果可以查看下面的示例图,如果你喜欢的话,欢迎给个star,嘻嘻,另外,你可以可以加入QQ群:469492027,一起探讨swift,期待大神你的加入~~~
To run the example project, clone the repo, and run pod install
from the Example directory first.
LGMagicRefresh is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LGMagicRefresh"
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类并实现方法即可~~
jamy0801, [email protected]
LGMagicRefresh is available under the MIT license. See the LICENSE file for more info.