UICollectionView using TLLayoutTransitioning resize with single row

I'm using TLLayoutTransitioning (https://github.com/wtmoose/TLLayoutTransitioning) to animate a resize of my UICollectionView cells. The example resize in the demo code is what I want (full size to small size). However I need to retain a single row horizontal layout - at the moment it lays out multiple rows to fill the screen. I'm not sure how to achieve this with UICollectionView or this layout library.

I've tried resizing the collection view itself (frame change), with limited success; it's not sizing correctly after the cells have resized. I don't even know if this is the correct way to achieve my single row layout?

The final piece of the puzzle is for the contents within the cells (a label and an image) to resize along with the cell.


It was as simple as changing the section inset for the selected layout.

collectionView.myLayout.sectionInset = UIEdgeInsetsMake(0, 0, 0, 0);

Adding a top and bottom value greater enough to create the space create the single row layout.

Need Your Help

C++ Precision: String to Double

c++ floating-point floating-accuracy

I am having a problem with precision of a double after performing some operations on a converted string to double.