-3

I'm using a standard UICollectionViewFlowLayout but it seems to do some overwork as it is centering the cells of section with one item and if the section contains 2 or 3 items, they are not distributed to fit width

How to get always the same distribution (to left) and margins (as with more than 3 items)

enter image description here

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179

1 Answers1

-2

I found out what the problem was... the title text with (with the gray line separator) is also a cell that correspond to fullwidth, if this cell is together with the same sized cells i get the result described above

So the solution was to keep only the same sized image cells in one section, without the fullwidth title cell (Note: it is also better to rework the title cell into a section header in this case)

enter image description here

Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179