Configurations
Simple Swift library for plist based configuration
Installation
Add a line to your Podfile:
pod 'Configurations'
Add 2 keys to your applications Info.plist, one for the name of your configurations plist (ConfigurationFileName) and one for the current configuration (Configuration).
If you set Configuration to $(CONFIGURATION), it will inherit the current application configuration.
Usage
Create a plist with a dictionary containing dictionaries for the different configuration names, below them you're free to add whatever you want:
Retrieve a value from the current configuration:
Import the framework:
import ConfigurationsAnd get the default configuration:
let configuration = Configuration.defaultConfiguration()
if let someValue = configuration["someKey"] as? String {
    print("someKey: \(someValue)")
}Contributing
- Fork it
 - Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
 

