Episode #455

Section Headers

Series: Working with Modern Collection Views

13 minutes
Published on August 5, 2020

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

In this episode we'll make a custom header view to give some of our sections a title. The approach we use here with compositional layout is more flexible than with UITableView. We'll start with a UICollectionReusableView implementation for our header, add the desired item to our layout, and then vend the desired view using the datasource's supplementaryViewProvider.

This episode uses Swift 5.3, Xcode 12-beta2.