I have an ObjC class with an init method
-(instancetype) initWithApiKey: (NSString *) key order: (NSNumber *) order
In ObjC I dynamically create it with the following code:
id classAllocation = [NSClassFromString(@"MyClass") alloc];
NSObject * classInstance = [classAllocation performSelector:@selector(initWithApiKey:order:)
withObject:@"mykey" withObject:@1];
But how would I do the same in Swift?