I have a SliderRow and I would like to take an action but only if the slider is released.
The .onChange does the action every time the user slides a bit (of course).
The .onCellHighlightChanged does not work for the SliderRow.
An option for .onSliderReleased would be great ;)
DoI have another options in meanwhile?
<<< SliderRow("Barrel") { row in
row.title = "Barrel"
row.value = Float(UserDefaultsManager.Barrel())
row.steps = 19
row.displayValueFor = { row in
return "\(Int(row ?? 0)) bbl"
}
}.cellSetup { cell, row in
cell.imageView?.image = UIImage(systemName: "antenna.radiowaves.left.and.right")
cell.slider.minimumValue = 5
cell.slider.maximumValue = 100
}.onChange { row in
let Barrel = Double(row.value ?? 50)
UserDefaultsManager.set(Barrel: Barrel)
ConnectionManager.reconnect()
}
There is a property
isContinuousinUISliderwhich controls the behavior.