Last active
February 17, 2020 20:15
-
-
Save meyusufdemirci/3f1086fb6df3016471fba904c04b26ae to your computer and use it in GitHub Desktop.
Base URL by Scheme
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
import SwiftUI | |
struct ContentView: View { | |
var baseURL: String { | |
#if DEBUG | |
return "This is DEBUG base URL" | |
#elseif TEST | |
return "This is TEST base URL" | |
#elseif RELEASE | |
return "This is RELEASE base URL" | |
#else | |
return "This is unknown base URL" | |
#endif | |
} | |
var body: some View { | |
Text(baseURL) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment