PullToRefreshSwift alternatives and similar libraries
Based on the "UITableView" category.
Alternatively, view PullToRefreshSwift alternatives based on common mentions on social networks and blogs.
-
folding-cell
:octocat: 📃 FoldingCell is an expanding content cell with animation made by @Ramotion -
SwipeCellKit
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. -
DGElasticPullToRefresh
Elastic pull to refresh for iOS developed in Swift -
Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift -
HGPlaceholders
Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project -
ReverseExtension
A UITableView extension that enables cell insertion from the bottom of a table view. -
ExpandableCell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 5 -
GridView
Reusable GridView with excellent performance and customization that can be time table, spreadsheet, paging and more. -
DiffableDataSources
💾 A library for backporting UITableView/UICollectionViewDiffableDataSource. -
KJCategories
Collection of native ios extensions and classes to boost development process. Such as UIKit, Foundation, QuartzCore, Accelerate, OpenCV, CoreGraphics, os and more. 超实用开发加速工具收集 -
QuickTableViewController
A simple way to create a UITableView for settings in Swift. -
YNExpandableCell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 4 -
CollapsibleTableSectionViewController
:tada: Swift library to support collapsible sections in a table view. -
ExpyTableView
Make your table view expandable just by implementing one method. -
WLEmptyState
WLEmptyState is an iOS based component that lets you customize the view when the dataset of a UITableView or a UICollectionView is empty. We created a sample project with the WLEmptyState component to show how you can use it. -
SwiftyComments
UITableView based component designed to display a hierarchy of expandable/foldable comments. -
AEAccordion
Simple and lightweight UITableViewController with accordion effect (expand / collapse cells) -
SectionScrubber
A component to quickly scroll between collection view sections -
SelectionList
Simple single-selection or multiple-selection checklist, based on UITableView -
SPDiffable
Wrapper of Apple Diffable Data Source. Including side bar and ready-use models. -
OKTableViewLiaison
Framework to help you better manage UITableViews -
AZTableViewController
Elegant and easy way to integrate pagination with dummy views -
CollapsibleTable
Collapsable table view sections with custom section header views. -
FDTextFieldTableViewCell
A UITableViewCell with an editable text field -
Doppelganger-Swift
Array diffs as collection view wants it - now in Swift ✨ -
CKTextFieldTableCell
UITableViewCell drop-in replacement with support of UITextField
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of PullToRefreshSwift or a related project?
README
PullToRefreshSwift
iOS Simple PullToRefresh Library.
[sample](Screenshots/PullToRefreshSwift.gif)
Installation
CocoaPods
pod 'PullToRefreshSwift'
Manually
Add the following files to your project.
pulltorefresharrow.png
PullToRefreshView.swift
PullToRefreshConst.swift
UIScrollViewExtension.swift
Usage
Setup
In your UIViewController Including UITableView, UICollectionView, UIScrollView:
override func viewDidLoad() {
self.tableView.addPullToRefresh({ [weak self] in
// refresh code
self?.tableView.reloadData()
self?.tableView.stopPullToRefresh()
})
}
You can use PullToRefreshOption class at addPullToRefresh func option parameter:
override func viewDidLoad() {
let options = PullToRefreshOption()
options.backgroundColor = UIColor.blueColor()
options.indicatorColor = UIColor.whiteColor()
self.tableView.addPullToRefresh(options: options, { [weak self] in
// some code
self?.tableView.reloadData()
self?.tableView.stopPullToRefresh()
})
}
If you want to fixed pulltoRefreshView, please implement scrollViewDidScroll.
func scrollViewDidScroll(scrollView: UIScrollView) {
self.tableView.fixedPullToRefreshViewForDidScroll()
}
If you want to use the custom const, please change the PullToRefreshConst class.
struct PullToRefreshConst {
static let tag = 810
static let alpha = true
static let height: CGFloat = 80
static let imageName: String = "pulltorefresharrow.png"
static let animationDuration: Double = 0.4
static let fixedTop = true // PullToRefreshView fixed Top
}
If you want to use the custom option, please change the PullToRefreshOption class. You can use this class at addPullToRefresh func option parameter.
class PullToRefreshOption {
var backgroundColor = UIColor.clearColor()
var indicatorColor = UIColor.grayColor()
var autoStopTime: Double = 0.7 // 0 is not auto stop
var fixedSectionHeader = false // Update the content inset for fixed section headers
}
Requirements
Requires Swift3.0 and iOS 8.0 and ARC.
If you are developing in the Swift1.1 ~ 2.3, please use branch of Swift1.1 ~ Swift2.3.
Features
- Highly customizable
- Complete example
- Refactoring
Contributing
Forks, patches and other feedback are welcome.
Creator
License
PullToRefreshSwift is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the PullToRefreshSwift README section above
are relevant to that project's source code only.