Embed a UICollectionView Inside a UITableViewCell

That is, so it works

Image for post
Image for post
Image by Gary Bending @kris_ricepees

Before we start


Keywords and Terminology

This project


What this project is, and what it isn’t

The look of the project

Image for post
Image for post

The implementation

The gotcha — let a UITableViewCell consume gesture

contentView.isUserInteractionEnabled = false

The UIViewController

var data = [[UIColor.red, UIColor.green, UIColor.blue, UIColor.green, UIColor.purple, UIColor.orange, UIColor.blue, UIColor.green, UIColor.blue, UIColor.green], [UIColor.brown, UIColor.green], [UIColor.blue, UIColor.green], [UIColor.blue, UIColor.green], [UIColor.blue, UIColor.green]]
cell.updateCellWith(row: data[indexPath.row])

The UITableViewCell


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store