Tag Archives: ObjectFactory

Instantiating Classes by Name in Swift

This article demonstrates how to create a Swift class instance based solely on the¬†class name and possibly an argument for its initializer method. It relies on Objective-C interop to perform the actual object creation, which is hidden behind a generic … Continue reading

Posted in Swift | Tagged | 16 Comments