Reputation: 1361
I have UICollectionView in my custom keyboard, and it has two rows of cells with same heights, but different widths (size comes from server), direction of scroll is horizontal.
How can I show collection items side by side, without this strange centering which based on the previous cell width?
Upvotes: 2
Views: 79
Reputation: 1361
I've achivied needed result with SKRaggyCollectionViewLayout
P.S. If you'll use SKRaggyCollectionViewLayout, don't forget to put
self.layout.variableFrontierHeight = NO;
to have same heights for all cells.
Upvotes: 1