
This video is only available to subscribers. Start a subscription today to get access to this and 469 other videos.
Section Headers
Episode
#455
|
13 minutes
| published on
August 5, 2020
| Uses Swift-5.3, Xcode-12-beta2
Subscribers Only
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 is part of a series: Working with Modern Collection Views.
1. Setting Up 20 min |
2. Cell Registration 4 min |
3. Collection View List Layout 9 min |
4. Compositional Layout 22 min |
5. Diffable Datasource Snapshots 17 min |
6. Section Headers 13 min |
7. Heterogeneous Sections 16 min |
8. Background Decoration Views 5 min |
9. Using the Layout Environment 4 min |
10. Item Anchors 7 min |