Skip to content

Instantly share code, notes, and snippets.

@rajohns08
Created April 19, 2016 01:13
Show Gist options
  • Save rajohns08/a45d12cccce6b86e30d8e701d28c6ce0 to your computer and use it in GitHub Desktop.
Save rajohns08/a45d12cccce6b86e30d8e701d28c6ce0 to your computer and use it in GitHub Desktop.
iOS / Swift - Base url class for getting from environment
class BaseURL {
class func getFromEnvironment() -> String {
#if DEBUG
return "http://192.168.1.126"
#else
return "https://judgecardx.com"
#endif
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment