While you can provide some project settings per environment via variable replacement in our Info.plist file, you should also view some of your config variables from code, such as our ROOT_URL and API_KEY. Let's start by putting them in our Info.plist file.
We'll have to add two new items to the plist because Xcode projects don't include a ROOT_URL or API-KEY key by default. To do so, tap anywhere else in the file on the button. Set the Type to String and the value to the value you substituted from our xcconfig files, as follows:
You can use Swift to access these parameters now that they're in our plist. Creating an Environment.swift file is one approach that is recommended. This will include an enum with no cases used as a namespace for accessing the plist and its variables