Last active
October 2, 2017 06:26
-
-
Save YuriNachos/22990b11a90ee16281b08703ace5ed86 to your computer and use it in GitHub Desktop.
Env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension Bundle { | |
| var apiBaseURL: String { | |
| return object(forInfoDictionaryKey: "serverBaseURL") as? String ?? "" | |
| } | |
| } | |
| //And call it from the code like this: | |
| let baseURL = Bundle.main.apiBaseURL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment