title: Passing Data to Custom CollectionView Cell (Static Data for all cells) SWIFT 2
body: <p>So I have a collectionView in a viewcontroller. I have a variable var user = User! which stores the current selected user (FYI I'm using Parse). I want to pass variable to the custom cell.</p>
  
  <pre><code>extension SentViewController : UICollectionViewDataSource
  {
      func numberOfSectionsInCollectionView(collectionView: UICollectionView) -&gt; Int
      {
          return 1
      }
  
      func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int
      {
          return cards.count
      }
  
      func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell
      {
          let cell = collectionView.dequeueReusableCellWithReuseIdentifier(Storyboard.CellIdentifier, forIndexPath: indexPath) as! SentCardCollectionViewCell
  
          cell.card = self.cards[indexPath.item]
          cell.delegate = self
          cell.user = user
  
          return cell
  
      }
  
  
  }
  </code></pre>
  
  <p>Now, my problem is that when I pass the variable user to the variable user in custom collection view cell, I get an object that repeats 3 times. i.e.: the same variable gets passed over, but it is multiplied 3 times.</p>
  
  <p>Any idea how to solve this? I have a feeling that it has something to do with the indexPath. Anyone have solutions?</p>