title: Get NSClassFromString from Array of Strings - Swift
body: <p>I am trying to write a function that loads a particular view controller from my array of string>. However I'm struggling with this concept in swift - I achieved this in Objective - C.</p>
  
  <pre><code>static NSString const *const viewControllerClassName[3] = {@"one", @"two", @"three"};
  </code></pre>
  
  <p>.</p>
  
  <pre><code>// get the name of the class of the viewcontroller that will be shown on this page
  const NSString *className = viewControllerClassName[1];
  Class class = NSClassFromString((NSString *)className);
  
  UIViewController *controller = [[class alloc] initWithContainer:self];
  </code></pre>
  
  <p>How do I achieve this concept in Swift? As Class is not featured in Swift?</p>