title: Update label inside UICollectionView
body: <p>I have created this using UICollectionView When I click the <code>Add(+)</code> or <code>Remove(-)</code> button then I want to update the label. How can I achieve this?</p>
  
  <p><a href="https://i.stack.imgur.com/EBFpB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EBFpB.png" alt=""></a></p>
  
  <p><strong>MainViewController.swift</strong></p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
  
      if(collectionView == ProductCollectionView){
          let Productcell = self.ProductCollectionView.dequeueReusableCell(withReuseIdentifier:"ProductCollectionViewCell", for: indexPath) as! ProductCollectionViewCell
  
          Productcell.AddOrMinusLabel.text = "\(bestOfferProductCount[indexPath.row])"
          Productcell.ProdName.text = bestOfferProductName[indexPath.row]
          Productcell.ProdPrice.text = bestOfferProductPrice[indexPath.row]
          Productcell.ProdtOrgPrice.text = bestOfferProductOriginalPrice[indexPath.row]
          Productcell.ProdWeight.text = bestOfferProductWeight[indexPath.row]+" "+bestOfferProductUnit[indexPath.row]
          Productcell.ProductImage.setImageFromURl(stringImageUrl: bestOfferProductImage[indexPath.row])
  
          return Productcell
      }
  
  }
  </code></pre>
  
  <p><strong>ProductCollectionViewCell.swift</strong></p>
  
  <pre><code>import UIKit
  
  class ProductCollectionViewCell: UICollectionViewCell {
  
  @IBOutlet weak var ProdPrice: UILabel!
  @IBOutlet weak var ProdtOrgPrice: UILabel!
  @IBOutlet weak var ProductImage: UIImageView!
  @IBOutlet weak var ProdName: UILabel!
  @IBOutlet weak var ProdWeight: UILabel!
  
  }
  </code></pre>