title: swifty way of doing if else
body: <p>I am a newbie in swift and I smell a bad code in the following logic</p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  
      if let dest = segue.destination as? VC1,
          let index =  collectionView?.indexPathsForSelectedItems?.first{
          dest.selection = self.cellLabels[index.row]
      }
      if let dest2 = segue.destination as? VC2,
          let index2 =  collectionView?.indexPathsForSelectedItems?.first{
          dest2.selection = self.cellLabels[index2.row]
      }
      if let dest3 = segue.destination as? VC3,
          let index3 =  collectionView?.indexPathsForSelectedItems?.first{
          dest3.selection = self.cellLabels[index3.row]
      }
  
  }
  </code></pre>
  
  <p>Essentially, I have multiple view controllers which I am trying to reach to depending on which Cell is tapped to.</p>
  
  <p>Why I feel this is  bad code is because there is a lot of code repeation. 
  Is there a better way to structure this?</p>