0

Is there a way to rearrange the cells between portrait and landscape using UICollectionView in a way like the following image? Just to be clear, little square on landscape remains on the left side and the biggest one goes to the right.

enter image description here

EDIT

My problem is that in Landscape mode the big square must occupy and fill two rows

christian mini
  • 1,662
  • 20
  • 39
  • 1
    check this https://stackoverflow.com/questions/48905355/collectionview-flowlayout-customize/48908379#48908379 maybe can help you – Reinier Melian Oct 25 '19 at 08:27
  • What’s the question? Is it whether landscape and portrait layouts can differ? Of course they can. – matt Oct 25 '19 at 08:35
  • I think he is asking about how to do it, more than if is possible or not @matt, how to define a custom LayoutFlow on UICollectionView and how change it after orientation change, OP can correct me if I am wrong – Reinier Melian Oct 25 '19 at 08:37
  • My problem is that in Landscape mode the big square must occupy and fill two rows – christian mini Oct 25 '19 at 08:45
  • @ReinierMelianI I've read the post I think this is the right answer thx. – christian mini Oct 25 '19 at 08:51

0 Answers0