title: collectionView cell not working in tapGestureRecognizer function
body: <p>I want to change a cell label text when I click/tap on a collectionView cell.
  I tried the following way, but this not working.</p>
  
  <pre><code>@objc func tap(_ sender: UITapGestureRecognizer) {
  
          let location = sender.location(in: self.collectionView)
          let indexPath = self.collectionView.indexPathForItem(at: location)
          if let index = indexPath {
  
              let subL = zoneDict?.sublevel[index.row]
  
              if (subL?.sublevel.count)! &gt; 0 {
  
                  DispatchQueue.main.async {
                      self.zoneDict = subL!
                      print("self.zoneDict --\(self.zoneDict!)")
                      let cell = self.collectionView.dequeueReusableCell(withReuseIdentifier: "colViewCell", for: index) as! CollectionViewCell
  
                      cell.zoneNameLabel.text = self.zoneDict?.name // Cannot update the text label. It show the default value
                      print("zone name-- \(self.zoneDict?.name)") // Its print the result.
                  }
                  self.delegate?.selectedZoneWithCellItems(items: "cell")
              }
          }
  }
  </code></pre>