title: Obj-C function translation to Swift 2 function
body: <p>I've done my best to transalte this code but something is still wrong. Can some please help and also explain which Obj-C code correlates to the Swift code?  Thanks.</p>
  
  <p><strong>Obj-C</strong></p>
  
  <pre><code>//NTRMainViewConroller.m
  - (IBAction)unwindFromModalViewController:(UIStoryboardSegue *)segue
  {
      if ([segue.sourceViewController isKindOfClass:[NTRColorsTableViewController class]]) {
          NTRColorsTableViewController *colorsViewConroller = segue.sourceViewController;
          // if the user clicked Cancel, we don't want to change the color
          if (colorsViewConroller.selectedColor) {
              self.view.backgroundColor = colorsViewConroller.selectedColor;
          }
      }
  }
  </code></pre>
  
  <p><strong>my attempt to translateSwift</strong></p>
  
  <pre><code>var colorsViewController: ColorsTableViewController
      @IBAction func unwindFromModalViewController(segue:  UIStoryboardSegue) {
          if segue.sourceViewController.isKindOfClass(ColorsTableViewController class)  {
              colorsViewController = segue.sourceViewController
              if(colorsViewController.selected)
          }
  
      }
  </code></pre>