I’ve a UISplitViewController that has like Master a UIViewcontroller in which I create a collection view with 4 cells. This cell are big like collection view, without any space between, in horizontal scroll, and with paging activated.
When the phone is in portrait or directly in landscape, all works well. but when I pass between portraits and landscape the problems come out.
le cell doesn’t resize correctly.
I say that because, the problem starts when I insert the view controller in a splitviewcontroller.
here some screenshot
This photo is when the app starts
This is first swipe on collectionview (the next cell is green)
This is when I rotate the cell in landscape
This when I come bak in portrait
If you want to check the code here there is the project that reproduce the problem
collectionViewLayout test.zip (70.5 KB)
Thank you very much for your help