Created
September 10, 2018 11:29
-
-
Save novinfard/e7c67f0e3499b0fa770e8bd334985895 to your computer and use it in GitHub Desktop.
[Using Envorinmental Variables in Swift]
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
let dic = NSProcessInfo.processInfo().environment | |
if dic["MY_VARIABLE"] != nil { | |
// ... do secret stuff here ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment