In such a case, I prefer creating a customCell and register its nib, but you could try to do it directly in the cell. But it seems you have created the custom cells ?
Anyway, constraints setting will be similar.
First step is to set the size of cell in CollectionView:
In your case, width should be equal to the full collectionView Width as defined here:
Then set constraint for the imageView in the cell: control drag from ImageView up to the CellView in the list, ans set leading, trailing, top, bottom (value for bottom: 60)
Set the ImageView View aspect to Aspect fit
Then place the Label and set its constraints relative to image view:
leading, trailing (may be less than the full image), top
define the Label font as Autoshrink (in Attributes inspector) with minimum size factor of 0.5
Procede in the same way for other objects in cell.
Do this and tell what you get.
Note: if that does not work, please post temporarily a mail address so that we can share files by mail.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: