title: collection view cell Hight and width in swift
body: <p>collection view had multiple images working fine. it's showing like this </p>
  
  <p><a href="https://i.stack.imgur.com/jhnat.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jhnat.png" alt="enter image description here"></a></p>
  
  <p>But i want show like this way </p>
  
  <p><a href="https://i.stack.imgur.com/W2KB0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W2KB0.png" alt="enter image description here"></a></p>
  
  <p>this is code of collection view cell </p>
  
  <pre><code> let layout: UICollectionViewFlowLayout = UICollectionViewFlowLayout()
   layout.sectionInset = UIEdgeInsets(top: 10, left: 0, bottom: 20, right: 0)
   let width = UIScreen.main.bounds.width
   layout.itemSize = CGSize(width: width/2 , height: width/2 )
   layout.minimumInteritemSpacing = 0
   layout.minimumLineSpacing = 0
   collectionView!.collectionViewLayout = layout
  </code></pre>