Collection view, cell size, image size

What is the best practice to have UIimage into cell that set the same width and same height

on CollectionView

  • cell size -> 200*200
  • Estimate size -> None

On cell

Uimage on cell

leading, trailing,bottom,top ---> to cell

even if I force the height and width, image do not set the same size of the cell the height is different????

I try with the delegate UICollectionViewDelegateFlowLayout to force size to 200*200 but no effect of UIimage inside

What can I do to have the same size on Uiimage into cell ?

I understand, I fact I need the set aspect fill to image.....

Collection view, cell size, image size
 
 
Q