- How to change spacing between the navigation bar and the first
collectionViewCell
?
- I want to be aligned in the middle. In this case, the only way to calculate the screen size?
collectionViewCell
?If you want to add space at the top of your collection view you can use contentInset. There are probably other ways to meet your requirement but this is the easiest way I can think of.
collectionView.contentInset = UIEdgeInsets(top: 100, left: 0, bottom: 0, right: 0)
I don't understand what you are trying to do. Can you explain more?