Reputation: 15028
I'm using a UICollectionView
with a UICollectionViewFlowLayout
to try and achieve left padding/margin on the first item in the view only. I've looked at all the instance attributes and methods for each and can't seem to find one that helps.
To be clear, I still want the view to be scrollable the entire width of the app, so simply moving the surrounding frame isn't going to help.
Upvotes: 4
Views: 1034
Reputation: 15028
To do what I want I needed to set the headerReferenceSize
of the UICollectionViewFlowLayout
to have a 10px width.
Upvotes: 9