Custom Collection View Layout, Episode 10: Mosaic Layout: Layout Attributes | Kodeco

This content was released on Mar 7 2017. The official support period is 6-months from this date.

Learn about subclassing UICollectionViewLayoutAttributes to add a custom property that will store the image height for each item. You'll also see how to override apply(_:) in the cell class, to use the new attribute.


This is a companion discussion topic for the original entry at https://www.kodeco.com/3987-custom-collection-view-layout/lessons/10