DoubleSlider - admiral-team/admiralui-ios GitHub Wiki
Class
A control for selecting a single value from a continuous range of values
Declaration
public final class DoubleSlider: UIControl, AnyAppThemable
Overview
Component present a view with lower and upper thumb image with line of progress. You can also control the maximum and minimum values of DoubleSlider.
Live example
DoubleSlider
Configure a let slider = DoubleSlider()
Tracking slider value changes
let slider = DoubleSlider()
slider.addTarget(self, action: #selector(sliderDidChange(_:)), for: .valueChanged)
@objc private func sliderDidChange(_ slider: Slider) {
print(slider.lowerValue, slider.upperValue)
}
Update min and max value of slider
slider.minimumValue = value
slider.maximumValue = value
Contribution
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.