xmartlabs / XLForm

XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
MIT License
5.77k stars 953 forks source link

Slider doesn't work #1019

Closed JulienMRP closed 6 years ago

JulienMRP commented 6 years ago

hi,

i'm trying to create a slider row but it doesn't work. the row doesn't want to display on the screen.

using this code :

row = XLFormRowDescriptor.init(tag: "test", rowType: "slider", title:"")
row.cellConfig.setValue(UIColor(red: 1, green: 1, blue: 1, alpha: 0.6), forKey: "backgroundColor")
section.addFormRow(row)

every other types work fine

Thanks !

mats-claassen commented 6 years ago

I copied your code to the Examples project and it works fine. A few things to check: Are you adding that section to the form? Do you have another row with that tag?

JulienMRP commented 6 years ago

thanks ! the problem was that i had a second row with the same id