I ended up having to create a UICollectionViewCompositionalLayout subclass, but the solution works really well. You can see the complete solution here.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: