For unknown reasons the cells overlapping like in the pictures below, how can I fix that problem?
Asked
Active
Viewed 94 times
1 Answers
-2
Solved it
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
return CGSize(width: self.view.frame.size.width, height: 200)
}

abdulelah
- 27
- 4