Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - Change UICollectionView layout to fill rows instead of columns

Is it possible to change the UICollectionView so that it fills the rows instead of the columns ? Here's an image explaining it :

EDIT : It's an horizontal scroll

EDIT 2 : I already fits 3 cells in a row, my problem is that with 4 cells it doesn't fill the first row.

enter image description here

like image 791
Xys Avatar asked Oct 15 '22 14:10

Xys


1 Answers

I had the exact same issue as you. Collectin view is horizontal & none-scrollable, but it was filling columns first. Weirdly though, changing the direction to "Vertical" fixed the issue though!

like image 183
Abdurrahman Avatar answered Nov 15 '22 00:11

Abdurrahman