I’ve mentioned a number of UICollectionView layouts for displaying images most recently the Airbnb inspired NVBNBCollectionView.
Here’s an open source UICollectionView layout library that provides a layout that automatically adjusts based on the size of your images.
Greedo keeps the image aspect ratio, and calculates the best possible layout for your images. An example project is included.
Here’s an image from the readme showing a Greedo created image gallery:
You can find Greedo on Github here.
A nice collection view layout for displaying images.
Original article: Open Source UICollectionView Gallery Layout That Preserves Aspect Ratio
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.