Eureka: minimumValue and maximumValue properties removed from SliderRow

Created on 13 Jul 2018  路  2Comments  路  Source: xmartlabs/Eureka

Hello,

I just did a pod update and found that the minimumValue and maximumValue properties of SliderRow have been removed. I was using those. The 0..10 range provided by default is a bit arbitrary.

  • pod 'Eureka', '>= 4.0.0'
  • Xcode 9.4.1, iOS 10.0+.

Cheers
-Mark

Most helpful comment

Yes minimumValue and maximumValue have been removed because of #1158.
You can change them in cellSetup by accessing cell.slider directly:

SliderRow() { row in
// set up row
}.cellSetup { cell, row in
    cell.slider.minimumValue = 4
}

All 2 comments

Yes minimumValue and maximumValue have been removed because of #1158.
You can change them in cellSetup by accessing cell.slider directly:

SliderRow() { row in
// set up row
}.cellSetup { cell, row in
    cell.slider.minimumValue = 4
}

Try this as a fix:

let maxValue: Float = 1.0
let minValue: Float = 0.25
$0.cell.slider.minimumValue = minValue
$0.cell.slider.maximumValue = maxValue

Was this page helpful?
0 / 5 - 0 ratings