pitiphong-p / CollectionViewShelfLayout

A UICollectionViewLayout subclass displays its items as rows of items similar to the App Store Feature tab without a nested UITableView/UICollectionView hack.
MIT License
376 stars 30 forks source link

Hiding Some Section Headers #14

Open CLoutas opened 5 years ago

CLoutas commented 5 years ago

Hello and thanks for the hard work, much appreciated!

I've been trying to figure out if you can hide certain section headers using CollectionViewShelfLayout, but I don't think you can. Can you?

If not, I would be interested in helping implement it. Any thoughts on how to do it?

pitiphong-p commented 5 years ago

You can add a new delegate method asking for the size of the header similar to the UITableViewDelegate and add the logic in the calculateLayout method