Self-Sizing Collection View

BSD License
Swift
iOS

2 images

Author

Description

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.

Tags