RHPreviewCell alternatives and similar libraries
Based on the "Table View / Collection View" category.
Alternatively, view RHPreviewCell alternatives based on common mentions on social networks and blogs.
-
SwipeCellKit
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. -
MCSwipeTableViewCell
DISCONTINUED. ๐ Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app). -
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. -
Bohr
DISCONTINUED. Bohr allows you to set up a settings screen for your app with three principles in mind: ease, customization and extensibility. -
CenteredCollectionView
A lightweight UICollectionViewLayout that 'pages' and centers its cells ๐ก written in Swift -
CascadingTableDelegate
A no-nonsense way to write cleaner UITableViewDelegate and UITableViewDataSource in Swift. -
ListPlaceholder
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views. -
GLTableCollectionView
Netflix and App Store like UITableView with UICollectionView, written in pure Swift 4.2 -
KDDragAndDropCollectionView
This component allows for the transfer of data items between collection views through drag and drop -
DataSources
๐พ ๐๐ฑ Type-safe data-driven CollectionView, TableView Framework. (We can also use ASCollectionNode) -
DTTableViewManager
Protocol-oriented UITableView management, powered by generics and associated types. -
TLIndexPathTools
TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views. -
CollapsibleTableSectionViewController
:tada: Swift library to support collapsible sections in a table view. -
TRMosaicLayout
A mosaic collection view layout inspired by Lightbox's Algorithm, written in Swift ๐ถ -
SquareMosaicLayout
An extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations :large_orange_diamond: -
HoverConversion
DISCONTINUED. HoverConversion realized vertical paging with UITableView. UIViewController will be paging when reaching top or bottom of UITableView contentOffset. -
GenericDataSource
A generic small reusable components for data source implementation for UITableView/UICollectionView in Swift. -
PJFDataSource
PJFDataSource is a small library that provides a simple, clean architecture for your app to manage its data sources while providing a consistent user interface for common content states (i.e. loading, loaded, empty, and error). -
AZCollectionViewController
Easy way to integrate pagination with dummy views in CollectionView, make Instagram "Discover" within minutes. -
ios-dragable-table-cells
DISCONTINUED. Objective-C library for drag-n-drop of UITableViewCells in a navigation hierarchy of view controllers.
WorkOS - The modern identity platform for B2B SaaS
* 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 RHPreviewCell or a related project?
README
[](./ReadmeAssets/RHPreviewCellHeadLogo.gif)
RHPreviewCell ๐ถ
I envied so much Spotify iOS app this great playlist preview cell ๐, I decided to create my own one ๐ถ. Now you can give your users ability to quick check "what content is hidden under your UITableViewCell". Great think is that this Library not requires 3D Touch support from user device๐ฅ.
Play with it ๐
Installation
You can install RHPreviewCell library using Cocoapods:
pod 'RHPreviewCell'
or you can simply copy RHPreviewCellSource
folder to your project.
Usage
To fully integrate RHPreviewCell with your Table View you just need to use RHPreviewCell like normal UITableViewCell in terms of your TableView data source 'cellForRowAtIndexPath' method.
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
// Fetching already registered RHPreviewTableViewCell
let cell = tableView.dequeueReusableCellWithIdentifier(reuseCellIdentifier) as! RHPreviewTableViewCell
// Delegate using which, tiles will talk to your class
cell.delegate = self
// Data source for feed small tiles ๐ผ
cell.dataSource = self
return cell
}
๐ก Important thing is that your View Controller needs to comform to RHPreviewCellDataSource
and RHPreviewCellDelegate
protocols. In that way you will be able to provide all neccesary data for RHPreviewTalveViewCell
tiles.
RHPreviewCellDataSource
func previewCellNumberOfTiles(cell: RHPreviewTableViewCell) -> Int
func previewCell(cell: RHPreviewTableViewCell, tileForIndex: Int) -> RHPreviewTileView
RHPreviewCellDelegate
func previewCell(cell: RHPreviewTableViewCell, didSelectTileAtIndex indexValue: RHTappedTileIndexValue)
And thats it! ๐ฅ You have already integrete Library with your Table View ๐
Implementation hint from me
[Q] How may look like tiles communiacation with my classโ๐ค
As I said using RHPreviewCellDelegate
. I will show you how to handle it for particular cell:
func previewCell(cell: RHPreviewTableViewCell, didSelectTileAtIndex indexValue: RHTappedTileIndexValue) {
let cellIndex = tableView.indexPathForCell(cell)!.row
switch indexValue {
case .TileTapped(let index):
print("๐ฒ \(index) has been selected")
case .FingerReleased:
print("๐๐ฝ Finger has been released (non of tiles has been tapped)")
}
}
... as you can see delegate method as a argument takes RHTappedTileIndexValue
, yup... it is swift enum using which you will gather information about tapped tile (.TileTapped(let index)
) or even whether user released his finger out of tiles area (.FingerReleased
).
Swift support
Library ver | Swift ver |
---|---|
1.0.1 | 2.2 |
1.0.2 | 2.3 |
1.0.3 | 3.0 |
1.1.0 | 4.0 |
Check the Demo project
Please check out the demo project, you can see there how Library has been implemented in details.
*Note that all licence references and agreements mentioned in the RHPreviewCell README section above
are relevant to that project's source code only.