title: Steps involving in resizing UICollectionCell in swift
body: <p>I working on auto layout and size class enabled project.I tried to resize UICollectionViewCell width to make sure it fit for entire screen.</p>
  
  <pre><code>code:
   screenSize = UIScreen.mainScreen().bounds
   screenWidth = screenSize.width
      func collectionView(collectionView: UICollectionView,
              layout collectionViewLayout: UICollectionViewLayout,
              sizeForItemAtIndexPath indexPath: NSIndexPath) -&gt; CGSize{
                  recentCollection.collectionViewLayout.invalidateLayout()
                  return CGSizeMake(screenWidth, 200.0)
          }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/uIq4H.png" alt="enter image description here"></p>
  
  <p>I do not know am i working on right way?any help appreciated.thanks in advance</p>