Section Headers

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 is a companion discussion topic for the original entry at https://nsscreencast.com/episodes/455-modern-collection-views-06-section-headers