NSCollectionLayoutGroup.custom(layoutSize:) Documentation or Example?

The new `UICollectionViewCompositionalLayout` is really cool but from what I understand you are still limited to a linear layout, though it may be complex.


What I'm trying to achive is something where cells overlap. Something like this:


I suspect I have to use `NSCollectionLayoutGroup.custom(layoutSize:)` but I see no documentation for this at all not to mention any examples.


Any clues how can I do this?

Replies

I’m just getting to grips with this new paradigm myself, but I have tried using negative values for LayoutGroup.interItemSpacing to create a ‘static’ overlapping effect.
You could also try changing the .zIndex to overlap is a different order.