I want to add some space before the first cell in a collection view, something like an offset, my collection view has a horizontal scroll position.
Here is my current collection view:
It has a leading constraint of 35, what I want is the cell to start at an "x" position of 35 but with the ability to scroll full width like in this:
Is there a way to create that initial offset in a collection view using Swift 3?
You could just set Section Insets for Collection View Flow Layout without code.
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