title: Swift collectionView select cell multiple selection
body: <p>I have a <code>UICollectionView</code> with 2 sections. I want to select the cell when the user taps on it.</p>
  
  <p>My code runs correctly every time a user taps on the cell, the cell become smaller and a checkmark appears in it ( it's the <code>imageView</code> I add as subview of the cell). The problem is that if I tap a cell on the first section, it selects another cell in the second section. This is weird as I use the <code>indexPath</code>.</p>
  
  <p>This is my code:</p>
  
  <pre><code>func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
      // handle tap events            
  
      let cell = collectionView.cellForItemAtIndexPath(indexPath)
      let centerCell = cell?.center
  
      if cell!.frame.size.width == cellWidth {
          cell?.frame.size.width = (cell?.frame.size.width)!/1.12
          cell?.frame.size.height = (cell?.frame.size.height)!/1.12
          cell?.center = centerCell!
  
          let imageView = UIImageView()
          imageView.image = MaterialIcon.check?.imageWithColor(MaterialColor.white)
          imageView.backgroundColor = MaterialColor.blue.accent2
          imageView.frame = CGRectMake(1, 1, 20, 20)
          imageView.layer.cornerRadius = imageView.frame.height/2
          imageView.clipsToBounds = true
          if indexPath.section == 0 {
              imageView.tag = indexPath.row+4000
          } else {
              imageView.tag = indexPath.row+5000
          }
          print("IMAGEVIEW TAG: ",imageView.tag)
          cell?.addSubview(imageView)                
      }
  }
  </code></pre>