Created
May 30, 2020 05:32
-
-
Save juliuscanute/10ff5082b1c7283f86546cfc1ebce477 to your computer and use it in GitHub Desktop.
iOS MultiConfig Get
This file contains 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
final class ConfigurationData: ObservableObject { | |
/*...*/ | |
func setData(environment: String? = nil) { | |
/*...*/ | |
let config: ConfigurationGetter = Environment.multiConfig!.getConfig() | |
let text = config.getConfigString(userKey: "C") | |
let visibility = config.getConfigBoolean(userKey: "A") | |
let size = Int(config.getConfigInt(userKey: "B")) | |
let currentChoice: KotlinPair = config.getConfigPair(userKey: "D") | |
let choiceNo: Int = Int(currentChoice.second as! Int32) | |
/*...*/ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment