Swift 5 tutorial: Adding header and footer to UICollectionView - iOS Tutorial
There are many situations when you'd like to add a header and footer to a UICollectionView component, in Swift. Regardless whether it's a simple title or a more advanced view, UICollectionView supports headers and footers out of the box, without too much boilerplate code.








