title: Programmatically change a Storyboard's Class in Swift
body: <p>I am developing a game, and I have been saving level design for the end. Anyway, I am here now and running into issues. I would like to use the same storyboard for all of the levels, but just change the class of the storyboard to a different view controller. I am assuming that having 50+ storyboards in your project is not a good thing, correct me if I am wrong.</p>
  
  <p>Right now this is the "sample" code I have, just to give an idea of what I want to do.</p>
  
  <pre><code>    let storyboard = UIStoryboard(name: "Main", bundle: nil)
      nextViewConroller = storyboard.instantiateViewControllerWithIdentifier("levelStoryboard")
      storyboard.class = "Level" + String(currentLevel) + "Controller" // Purely concept code - does not work.
      presentViewController(nextViewConroller, animated: true, completion: nil)
  </code></pre>