A collection view that is 3 cells wide and x cells tall, however randomly spread throughout i'd like a cell that is the size of 2 cells, see the image below
Asked
Active
Viewed 106 times
0
-
It's not clear what you're asking or what you've tried so far. However, if you're trying to lay out a collection view like that you will undoubtedly need to subclass your own `UICollectionViewLayout` to decide where each cell should appear and at what size. – Michael Nov 16 '16 at 01:03
-
Possible duplicate of [Dynamic size UICollectionView cell](http://stackoverflow.com/questions/23760275/dynamic-size-uicollectionview-cell) – Hammadzafar Nov 16 '16 at 08:17
-
have a look at [THIS](https://github.com/betzerra/MosaicLayout). It might just be what you need – Hammadzafar Nov 16 '16 at 08:28
1 Answers
1
This will require a custom subclass of UICollectionViewLayout, which will manage both position and size of the items in the way you want.
Or you can get a layout somebody else already made, for example RFQuiltLayout:

johnyu
- 2,152
- 1
- 15
- 33