Self-Sizing Collection View for iOS

by Izotx
Download Source

The collection view is a great UI element but it doesn't handle elements with various content sizes elegantly. JMCFlexibleCollectionLayout based on customizable parameters like spacing between cells, margins, and maximum row height calculates and displays a collection view grid that maintains aspect ratio of the elements. It serves role of both UICollectionViewDataSource and UICollectionViewDelegate.