title: How to reload only one cell in a collectionView?
body: <p>I have a collectionView and I have two problems. First, the scrolling is too laggy. My collectionView receives the data from an API in url and look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/kwzl7.jpg" alt="enter image description here"></p>
  
  <p>This is my code:</p>
  
  <pre><code>extension ViewController: UICollectionViewDelegate, UICollectionViewDataSource {
      func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
          if imageUrl.count &gt;= 4 {
              activity.stopAnimating()
              activity.isHidden = true
          }else{
              DispatchQueue.main.async {
                  self.myCollectionView.reloadData()
              }
          }
  
          return imageUrl.count
      }
  
      func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
          let cell = myCollectionView.dequeueReusableCell(withReuseIdentifier: "myViewCell", for: indexPath) as! myViewCell
  
          if let url = NSURL(string: imageUrl[indexPath.row]){
              if let data = NSData(contentsOf: url as URL){
                  cell.carImageView.contentMode = UIViewContentMode.scaleAspectFit
                  cell.carImageView.image = UIImage(data: data as Data)
              }
          }
  
          cell.firstLabel.text = firstLabelArray[indexPath.row]
  
          if secondLabelArray != []{
              cell.secondLabel.text = secondLabelArray[indexPath.row]
          }
  
          return cell
      }
  }
  </code></pre>
  
  <p>The second problem that I have is I need refresh only the third cell in my collection view. That is my secondLabel but when I try with <code>myCollectionView.reloadData()</code> that reloads all of my cells. I need to refresh the third cell every second.</p>