M
M
MarsFM2019-05-13 15:53:17
Swift
MarsFM, 2019-05-13 15:53:17

How to indent the first cell more?

Plz tell me how to make the indent from the first cell more? 10px everywhere, but I need the first cell to have 20px
5cd9686e262ab372207411.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Vorobei, 2019-05-15
@sportredwhite

You need to property `contentInset`, `UICollectionView` has it. Install:
collectionView.contentInset.top = 20

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question