Custom subclass of UICollectionViewLayout that goes for a force directed positionning of the cells:
- Cells are attracted to the center of the view
- Cells are repulsed by each other
You should tweak the
charge variables before using it.
More info on how this layout works in the blog post