> On Nov 13, 2016, at 00:38, Rick Mann via swift-users <swift-users@swift.org> > wrote: > > So, it seems there's still no way to do something like instantiate a class > given only its name (as a String)? > > In my situation, I have a number of subclasses (or protocol implementations), > which parallel some other class hierarchy. I need to dynamically create one > based on the name of another. I don't want the latter classes to "know" > anything about the former.
Not that I know of... If this is all your code, can you fake it by switching over the type's name? - Dave Sweeris _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users