theappbusiness / ConfigGenerator

Configuration file code generator for use in Xcode projects
MIT License
157 stars 19 forks source link

Making `Config` a singleton #33

Open 0x6d6e opened 6 years ago

0x6d6e commented 6 years ago

Very handy tool. One observation though. Currently the Config class that is auto generated is initializable. So we can do something like let configInstance = Config(). Honestly though I am not sure whats wrong with that, but probably Config would be better off as a singleton or at least a private initializer. Cause we really dont want to instantiate Config