title: Creating Swift Struct and Classes from String
body: <p>I want to do something along those lines:</p>
  
  <pre><code>class MyClass {}
  struct MyStruct {}
  
  let newStruct = typeFromName("MyStruct").init()
  let newClass = typeFromName("MyClass").init()
  </code></pre>
  
  <p>I would like to be able to load information from a config file that would allow me to create different classes or struct base on a string in that file.</p>