Embed a UICollectionView Inside a UITableViewCell
That is, so it works
4 min readNov 18, 2020
Before we start
Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12.2, and Swift 5.3
Prerequisites
- You will be expected to be aware how to either make a Single View Application in Swift or use a Playground
- This article uses the Storyboard to implement the
UITableView
, and then creates theUITableViewCell
programmatically
Keywords and Terminology
IndexPath: The path to a specific node in a tree of nested array collections
UICollectionView: An object that manages an ordered collection of data items and presents them using customizable layouts
UICollectionViewCell: The on-screen cell for the UICollectionView type
UITableView: A view that presents data using rows arranged in a single column
UITableViewCell: The visual representation of a single row in a table view
This project
Background
Creating great user interfaces should interest us all. UIKit
has some great advantages as a…