Please use the address I sent by mail to move more rapidly to the solution. It seems you have not set constraints for the collectionView respective to the safe area: leading and trailing at least. Cell is 309 wide where collection is 404. You could get them less different. You do not show either what is the image aspect.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: