Eureka
Eureka copied to clipboard
Subtitle in CheckRow
Hi,
Is there a possibility to add a text below each title?
Here an example of Checkrow:
form +++ SelectableSection<ListCheckRow<String>>("Where do you live", selectionType: .singleSelection(enableDeselection: true))
let continents = ["Africa", "Antarctica", "Asia", "Australia", "Europe", "North America", "South America"]
for option in continents {
form.last! <<< ListCheckRow<String>(option){ listRow in
listRow.title = option
listRow.selectableValue = option
listRow.value = nil
}
}
Thanks,
Nobody?
I haven't tried this but you could try setting listRow.cellStyle = .subtitle
and then setting cell.detailTextLabel.text = "..."
ins cellUpdate
. If it does not work you might have to create a custom row
works like a charm