Skip to content

zhoing/XMRefresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XMRefresh

CI Status Version License Platform

Swift version of MJRefresh An easy way to use pull-to-refresh


Example

self.tableView.xm_header = XMRefreshNormalHeader.init(refreshing: { [weak self] in
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 5, execute: {
self?.tableView.reloadData()
self?.tableView.xm_header?.endRefreshing()
})
})
self.tableView.xm_footer = XMRefreshBackNormalFooter.init(refreshing: {
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 5, execute: { [weak self] in
self?.tableView.reloadData()
self?.tableView.xm_footer?.endRefreshing()
})
})

Requirements

Installation

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

pod 'XMRefresh'

Author

ming, [email protected]

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published