Eureka icon indicating copy to clipboard operation
Eureka copied to clipboard

Subtitle in CheckRow

Open cmartinespinosa opened this issue 4 years ago • 3 comments

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,

cmartinespinosa avatar Oct 01 '20 09:10 cmartinespinosa

Nobody?

cmartinespinosa avatar Oct 13 '20 09:10 cmartinespinosa

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

mats-claassen avatar Oct 13 '20 12:10 mats-claassen

works like a charm

sashatc avatar Jan 17 '23 19:01 sashatc