Initial commit
To run the example project clone the repo and run Example target
Example
ParticlePullToRefresh doesn’t contain any external dependencies
pod 'ParticlePullToRefresh'
Add pull-to-refresh to the scroll view subclass and provide an action closure. Call endRefreshing() when you are done to finish the animation
endRefreshing()
tableView.addParticlePullToRefresh { [weak self] in DispatchQueue.main.asyncAfter(deadline: .now() + 2) { self?.tableView.particlePullToRefresh?.endRefreshing() } }
Remove pull-to-refresh on deinit
deinit
deinit { tableView.removeParticlePullToRefresh() }
You can optionally pass the color when you add pull-to-refresh to the scroll view subclass
tableView.addParticlePullToRefresh(color: .yellow) { [weak self] in DispatchQueue.main.asyncAfter(deadline: .now() + 2) { self?.tableView.particlePullToRefresh?.endRefreshing() } }
Alex Demchenko, alex.demchenko@10clouds.com
ParticlePullToRefresh is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
ParticlePullToRefresh
Example
To run the example project clone the repo and run
Example
targetRequirements
Installation
ParticlePullToRefresh doesn’t contain any external dependencies
CocoaPods
Usage
Add pull-to-refresh to the scroll view subclass and provide an action closure. Call
endRefreshing()
when you are done to finish the animationRemove pull-to-refresh on
deinit
Customization
You can optionally pass the color when you add pull-to-refresh to the scroll view subclass
Author
Alex Demchenko, alex.demchenko@10clouds.com
License
ParticlePullToRefresh is available under the MIT license. See the LICENSE file for more info.