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.
To do what I want I needed to set the headerReferenceSize
of the UICollectionViewFlowLayout
to have a 10px width.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With