Skip to content

Instantly share code, notes, and snippets.

@juliuscanute
Last active May 30, 2020 08:27
Show Gist options
  • Save juliuscanute/71c25c9c2be8be961ab93cb650ded9d1 to your computer and use it in GitHub Desktop.
Save juliuscanute/71c25c9c2be8be961ab93cb650ded9d1 to your computer and use it in GitHub Desktop.
iOS Configuration
appConfig {
$0.config(environment: "FREE") {
$0.switch {
$0.key = "A"
$0.description = "Set text visibility"
$0.switchValue = true
}
$0.range {
$0.key = "B"
$0.description = "Set text size"
$0.min = 16
$0.max = 72
$0.currentValue = 50
}
$0.editable {
$0.key = "C"
$0.description = "Set current text"
$0.currentValue = "Hello Android!"
}
$0.choice {
$0.key = "D"
$0.description = "Set text color"
$0.currentChoiceIndex = 0
$0.item {
$0.description = "RED"
}
$0.item {
$0.description = "GREEN"
}
$0.item {
$0.description = "BLUE"
}
}
}
$0.config(environment: "PREMIUM") {/*...*/}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment