-
-
Save ThakurSahabUPse/e98c67dd1a2fea9b6937b084c71bb7ef 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