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. ...