A picture is worth a thousand words, how to rewrite this code from Objective-C to Swift?
- (id) instanceOfClass: (Class) class withInitializer: (SEL) initializer
See matt's excellent answer here. Basically with @objc you can mimic the dynamic creation of instances.
@objc