title: collection view has first cell always empty
body: <p>I have a custom Collection view in a Viewcontroller , whenever my Collection View is loaded always I get my first cell empty. How to remove this empty cell.</p>
  
  <p><a href="https://i.stack.imgur.com/eIcfL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eIcfL.png" alt="enter image description here"></a></p>
  
  <pre><code>//CollectionView functions
  func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
  
      return collectionData.count
  }
  
  func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
  
      let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath) as! collectionCell
  
      let collectionData = self.collectionData[indexPath.row]
  
  
      cell.NameLbl.text       = collectionData["name"] as? String
  
  
  
      return cell
  
  }
  
  func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
  
      let Info: NSDictionary = self.collectionData[indexPath.item] as! NSDictionary
  
  
      let vc = self.storyboard?.instantiateViewController(withIdentifier: "edit") as! editVC
      self.navigationController?.pushViewController(vc, animated: false)
  
  
  
  }
  </code></pre>