All Projects → Pircate → EasyRefresher

Pircate / EasyRefresher

Licence: MIT license
The refresh control associated with the scroll view.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to EasyRefresher

Glastoselenium
A bot for booking Glastonbury tickets using selenium
Stars: ✭ 89 (+493.33%)
Mutual labels:  refresh
Pull To Refresh.rentals Ios
This project aims to provide a simple and customizable pull to refresh implementation. Made in Yalantis
Stars: ✭ 2,171 (+14373.33%)
Mutual labels:  refresh
react-pullrefresh
Pull to refresh react component.
Stars: ✭ 61 (+306.67%)
Mutual labels:  refresh
Arrowdrawable
纯Paint实现的一个射箭效果,可用作Loading动画。
Stars: ✭ 103 (+586.67%)
Mutual labels:  refresh
Tgrefreshoc
弹簧、橡皮筋下拉刷新控件,类似QQ下拉刷新效果,同时支持其他样式
Stars: ✭ 149 (+893.33%)
Mutual labels:  refresh
Mjrefresh
An easy way to use pull-to-refresh.
Stars: ✭ 13,565 (+90333.33%)
Mutual labels:  refresh
Collapsingrefresh
AppBarLayout+ViewPager+RecyclerView的刷新功能
Stars: ✭ 69 (+360%)
Mutual labels:  refresh
LCRefresh
简单的swift 版的 下拉刷新控件,希望可以给你提供一个思路。
Stars: ✭ 21 (+40%)
Mutual labels:  refresh
Listloading
listloading是一个移动端的上拉、下拉加载更多的组件。主要依赖于iscroll.js v5.1.2基础上开发的组件,基础库可以使用jquery.js或者zepto.js操作dom节点,目前我是使用了zepto.js作为基础库操作dom,以jquery插件的形式存在。如果不想以插件方式使用,则只需要把listloading直接移植你需要的库里面就ok啦。listloading主要针对移动端而生,在使用浏览器自带滚动,用户体验很不友好,与Android和ios差别甚远,所以选择iscroll.js,它实现方式是使用css3动画translate 3D 转换来实现滚动效果,transform属性使用硬件加速,性能方法得到很大提高。 https://gtdalp.github.io/widget/listloading/demos/listloading.html
Stars: ✭ 169 (+1026.67%)
Mutual labels:  refresh
Flutter easyrefresh
A flutter widget that provides pull-down refresh and pull-up load.
Stars: ✭ 2,989 (+19826.67%)
Mutual labels:  refresh
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+10506.67%)
Mutual labels:  refresh
React Native Mjrefresh
基于ios MJRefresh https://github.com/CoderMJLee/MJRefresh 开发的插件,可提供自定义的弹性刷新
Stars: ✭ 140 (+833.33%)
Mutual labels:  refresh
Shswiperefreshlayout
Android 升级版 SwipeRefreshLayout,支持RecyclerView、ScrollView等大部分组件,下拉刷新(Refresh)和上拉加载(Loadmore),支持自定义HeaderView和FooterView
Stars: ✭ 236 (+1473.33%)
Mutual labels:  refresh
React Native Rk Pull To Refresh
a pull to refresh component for react-native, same api on both android and ios
Stars: ✭ 100 (+566.67%)
Mutual labels:  refresh
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (+60%)
Mutual labels:  refresh
Smoothrefreshlayout
一款支持上下拉刷新、越界回弹、二级刷新、横向刷新、拉伸回弹、平滑滚动、嵌套滚动的多功能刷新控件
Stars: ✭ 1,166 (+7673.33%)
Mutual labels:  refresh
Smilerefresh
微笑下拉刷新。这是在 SwipeRefreshLayout基础上修改的下拉刷新库。
Stars: ✭ 203 (+1253.33%)
Mutual labels:  refresh
Management
Management Endpoints used to allow insight into your applications
Stars: ✭ 31 (+106.67%)
Mutual labels:  refresh
YanXuanRefresh
仿网易严选下拉刷新动画效果
Stars: ✭ 37 (+146.67%)
Mutual labels:  refresh
React Native Smartrefreshlayout
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
Stars: ✭ 240 (+1500%)
Mutual labels:  refresh

EasyRefresher

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 10.0
  • Swift 5.0

Installation

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

pod 'EasyRefresher'

Preview

Usage

  • Add Refresher
tableView.refresh.header.addRefreshClosure {
    self.reqeust {
        self.tableView.refresh.header.endRefreshing()
    }
}

tableView.refresh.footer = AutoRefreshFooter(triggerMode: .percent(0.5)) {
    self.reqeust {
        self.tableView.refresh.footer.endRefreshing()
    }
}

tableView.refresh.header = RefreshHeader(delegate: self)
  • Manual Trigger
tableView.refresh.header.beginRefreshing()
  • State Title
tableView.refresh.header.setTitle("loading...", for: .refreshing)

tableView.refresh.footer.setAttributedTitle(
    NSAttributedString(string: "已到最后一页", attributes: [.foregroundColor: UIColor.red]), for: .disabled
)
  • Last updated time
tableView.refresh.header.lastUpdatedTimeText = { date in
    guard let date = date else { return "暂无更新记录" }
    
    return "上次刷新时间:\(date)"
}
  • UIActivityIndicatorView Style
tableView.refresh.header.activityIndicatorStyle = .white
  • Disabled
// End refreshing and set state to disabled
tableView.refresh.footer.isEnabled = false
  • Remove
tableView.refresh.footer.removeFromScrollView()
  • Impact feedback
tableView.refresh.header.impactFeedbackMode = .on(style: .medium)
  • Custom State View
extension CustomStateView: RefreshStateful {
    
    public func refresher(_ refresher: Refresher, didChangeState state: RefreshState) {
    
    }
    
    public func refresher(_ refresher: Refresher, didChangeOffset offset: CGFloat) {
    
    }
}

tableView.refresh.footer = AppearanceRefreshFooter(stateView: CustomStateView()) {
    self.reqeust {
        self.tableView.refresh.footer.endRefreshing()
    }
}

Author

Pircate, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].