Episode #456

Heterogeneous Sections

Series: Working with Modern Collection Views

16 minutes
Published on August 5, 2020

This video is only available to subscribers. Get access to this video and 584 others.

Our Diffable Datasource and snapshots are generic over the type of data that we pass to the cells. So how can we make sections with completely different data? In this episode we'll cover one approach which involves defining an enum with associated data for each of the sections. We'll use this to add a Series strip of data mixed in with our collection view.

This episode uses Swift 5.3, Xcode 12-beta2.