Slightly different than this question, I'm looking to build a single vertically scrolling collection view with three sections.
In portrait orientation, Sections 0 and 1 should scroll orthogonally and all sections should be vertically arranged. This is easily achieved with UICollectionViewCompositionalLayout.
In landscape orientation, Section 0 and Section 1 should be laid out side by side, each 50% of the width of the collection view. Section 0 and Section 1 should scroll orthogonally (horizontally). Section 2 will be laid out below them. (Mock image shown below)
Is this layout possible with a single collection view and UICollectionViewCompositionalLayout?
If not, is this layout possible with a single collection view and a custom layout?
I'd hate to have to throw three separate collection views into a scroll view if there is a simpler implementation.