我尝试使用Eureka framework
. 但是,选择特定选项时如何隐藏部分?
请帮忙!
let fruits = ["Apple", "Banana", "Coconut"]
form +++= SelectableSection<ImageCheckRow<String>, String>() { section in
section.header = HeaderFooterView(title: "What is your favorite fruit ?")
}
for fruit in fruits {
form.last! <<< ImageCheckRow<String>(fruit) { lrow in
lrow.title = fruit
lrow.selectableValue = fruit
}
}
form +++ Section("xxxxxx Question") {
//hide this section when apple is selected
//$0.hidden =
}
form.last! <<< TextAreaRow() {
$0.title = "Enter description here..."
}