Chapter    16

Collection View Custom Layouts

Custom UICollectionView layouts allow you to take complete control over every aspect of the look and feel of the collection view, and produce spectacular effects with visual appearance and transitions. The downside to this is that you’re responsible for calculating every aspect, so custom layouts are more complex to implement than flow layouts.

Don’t let that put you off, however. Custom layouts aren’t that complex to implement, and the results are often worth the extra effort!

This chapter covers the process of creating custom layouts for UICollectionView. In the first part of the chapter, I’ll introduce the processes that are involved in calculating the various layout attributes that are required. ...

Get Pro iOS Table Views and Collection Views: Using Swift 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.