Collection View cell dynamic layout

I have the following setup on iOS:

CollectionViewController to initialize the screen. It caches 3 flow layouts, as per images attached. Clicking the top right button iterates between layouts. It is also responsible for loading the cell.xib.

Each flow layout handles cell size and scroll directions.

My objective is to assimilate the different cell layouts in the various flow layouts, preferably having one cell.

I managed to do so in code, however, the result is not pretty. I ended up with a swtich statement, communicating the change of the layout to every cell and resizing the cell views accordingly.

I'd love to hear your suggestions!


Sign In or Register to comment.