title: Pass image view from collection view to a new view controller
body: <p>How can I pass data a view controller that has images inside collection view to another view controller, when clicking a image? So when I click the image, it opens in another view controller.</p>
  
  <p>cellForItemAtIndexPath code:</p>
  
  <pre><code>func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell
      {
          let cell = collectionView.dequeueReusableCellWithReuseIdentifier("cell", forIndexPath: indexPath) as! CollectionViewCell
  
          cell.imageText.adjustsFontSizeToFitWidth = true
  
          cell.layer.borderWidth = 0.5
          cell.layer.cornerRadius = 3
          let myColor : UIColor = UIColor(red: 0.0, green: 0.0, blue:0.0, alpha: 0.15)
          cell.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.025)
          cell.layer.borderColor = myColor.CGColor
  
          let post = self.arrayOfDetails[indexPath.row]
          cell.currentUserLabel.text = post.username
          cell.imageText.text = post.text
  
          cell.uploadedTimeLabel.text = post.CreatedAt.timeAgo
  
          cell.imageView.setImageWithUrl(NSURL(string: post.image)!, placeHolderImage: UIImage(named: "Placeholder"))
  
          return cell
      }
  </code></pre>
  
  <p>Details:</p>
  
  <pre><code>struct Details {
      var username:String!
      var text:String!
      var CreatedAt:NSDate!
      var image:String!
      init(username:String,text:String,CreatedAt:NSDate,image:String){
  
          self.username = username
          self.text = text
          self.CreatedAt = CreatedAt
          self.image = image
      }
  }
  </code></pre>
  
  <p>didSelectItemAtIndexPath method:</p>
  
  <pre><code>func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath)
      {
           self.performSegueWithIdentifier("showImage", sender: self)
      }
  </code></pre>
  
  <p>Any suggestions please?</p>