title: Create a UIViewController concrete class from its type
body: <p>I wish to create a concrete class from UIViewController type, something like this </p>
  
  <pre><code> func create(with type : UIViewController.Type)-&gt;UIViewController{
         return type.init(coder: NSCoder())!
      }
  </code></pre>
  
  <p>Apparently, UIViewController's designated initializer is only init(coder : NSCoder). And, when I try to pass in NSCoder() (as shown in the above case), the app crashes. </p>
  
  <p>Anyone knows a better solution in creating a UIViewController concrete class from its type? Or am I pass in the wrong NSCoder in this case? </p>