Very thin line between Collection View Cells

Viewed 707

I am seeing a very thin white line in between my collection view cells, even though I have set section insets to 0 and defined the collection view cell to be self.view.bounds.size.width/2 (there should be two cells per row next to each other).

enter image description here

(You may have to open the image in full-view to see the white line highlighted in blue).

This is visible on a physical iPhone X device.

1 Answers

I was able to fix that by setting minimumInteritemSpacing to -2 and adding +1 to the cell width. Don't know if it's cover all edge cases but it's working for my issue. Hope that this will help someone else

Related