O'Reilly logo

Pro iOS Table Views and Collection Views: Using Swift 2 by Tim Duckett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required