IBPCollectionViewCompositionalLayout is a backport of Apple's UICollectionViewCompositionalLayout APIs for older iOS versions. It allows applications targeting iOS 12 to adopt the compositional layout model introduced with iOS 13. Developers can define complex collection views from items, groups, sections, and dimensional rules instead of writing extensive custom layout subclasses. The same approach can create lists, grids, mosaics, nested groups, banners, and independently scrolling sections. An interoperability file helps projects share layout code between systems using the native API and those using the backport. The library closely mirrors Apple's API so migration requires minimal conceptual changes. It was created to reduce duplicate layout code during the transition to newer UIKit versions.
Features
- UICollectionViewCompositionalLayout backport
- Complex item, group, and section layouts
- Nested collection view structures
- Orthogonally scrolling sections
- iOS 12 compatibility
- Shared code with native iOS 13 APIs