This simple project show some aspects of collection view layout implementation.
App contains 3 examples:
- Example of subclassed
UICollectionViewFlowLayout
implementing footer view as decoration view with custom layout attributes. - Example of subclassed
UICollectionViewLayout
implementing separators view as decoration view and custom layout animations. - Example of subclassed
UICollectionViewLayout
where cells use auto-layout to calculate cell size. This example show how useUICollectionViewLayoutInvalidationContext
to achieve better performance.