My cells seem to have a gap of about 20 points, I want to control that value, but every answer I found regarding this question does not work.
I tried:
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
return 0
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
return 0
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
return UIEdgeInsets.zero
}
without any useful output, also:
layout.minimumLineSpacing = 0
layout.minimumInteritemSpacing = 0
and these two lines also didn't help.
Please note that I'm not using the storyboard!