I have a horizontal UICollectionView. I want to make the cells overlap each other by a certain amount of 60 pixels so that the second cells overlaps the first by 60 pixels and the third overlaps the second by the same amount and so on.
I tried sub classing UICollectionViewFlowLayout. But I am not able to place the UICollectionviewCell on top of one another.
I used mdewitt's answer, converted it to swift 3 and i works great! For anyone interested:
I used both answers from above to create an example for Xamarin.iOS:
Starting with this tutorial: https://web-beta.archive.org/web/20151116053251/http://blog.tobiaswiedenmann.com/post/35135290759/stacklayout
I modified the stacklayout specifically for a horizontal UICollectionView
UICollectionViewStackLayout.h
UICollectionViewStackLayout.m