title: Implement 3D touch on multiple collection views or table views in the same view controller
body: <p>I would like to have 3D touch on both of the collection views of my app(Only the "Peek" functionality). They are both contained in the same view controller. No matter what syntax I try it always shows the image and text for the a cell in the first collectionview, even if I choose a cell in the second collection view. How do I separate these so that only one happens specifically for the collectionview cell I have selected?</p>
  
  <p>Here is how I am implementing the 3D touch functionality:</p>
  
  <p>I put this in VC's viewDidAppear because it wasn't working in viewDidLoad for some reason: </p>
  
  <pre><code>  override func viewDidAppear(animated: Bool) {
  
    if( traitCollection.forceTouchCapability == .Available){
  
      registerForPreviewingWithDelegate(self, sourceView: collectionView1)
      registerForPreviewingWithDelegate(self, sourceView: collectionView2)
  
  }
  </code></pre>
  
  <p>Here is what I also have in the VC that houses the two collectionviews:</p>
  
  <pre><code>func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -&gt; UIViewController? {
  
  
  guard let previewVC = storyboard?.instantiateViewControllerWithIdentifier("PreviewVC") as? PreviewViewController
      else{ return nil }
  
  guard let indexPath = collectionView1?.indexPathForItemAtPoint(location) else { return nil }
  guard let indexPath2 = collectionView2.indexPathForItemAtPoint(location) else { return nil }
  guard let cell1 = collectionView1?.cellForItemAtIndexPath(indexPath) else { return nil }
  guard let cell2 = collectionView2.cellForItemAtIndexPath(indexPath) else { return nil}
  
      previewVC.selectedItem = String(Gifs.row1[indexPath.row])
      previewVC.selectedItem2 = String(Gifs.row2[indexPath.rown])
  
      previewVC.preferredContentSize = CGSize(width: 245, height: 200)
      previewingContext.sourceRect = cell1.frame
  
  return previewVC
  }
  </code></pre>
  
  <p>And here is what I have in the previewVC:</p>
  
  <pre><code>class PreviewViewController: UIViewController {
  
  
   @IBOutlet weak var selectedGifImageView: UIImageView!
  
   @IBOutlet weak var textLabel: UILabel!
  
  
   var selectedItem: String?
   var selectedItem2: String?
   var delegate: MoveScrollViewController?
  
  override func viewWillAppear(animated: Bool) {
  
   textLabel.text = Gifs.gifDictionary[selectedItem]
   selectedGifImageView.setGifImage(UIImage(name: selectedItem))
  
   textLabel.text = Gifs.gifDictionary[selectedItem2]
   selectedGifImageView.setGifImage(UIImage(name: selectedItem2))
  
  }
  </code></pre>
  
  <p><a href="http://imgur.com/a/Jm8Xi" rel="nofollow">gif of what's happening</a></p>