The background image of my UICollectionView always appears smaller than the UICollectionView in terms of width and height. Here is the picture (The background white color is the whole UICollectionView size):
As you see from the picture, this causes the content to go outside of the background image. and when I scroll right, this happens (I cleared the background color of the CollectionView):
This is the size inspector of the CollectionView:
How can I reduce the size of the cells container inside the CollectionView?
Or what is the proper way to solve this issue?