Slider
Andrey Dyatkov edited this page Oct 11, 2022
·
7 revisions
A control for selecting a single value from a continuous range of values
public final class Slider: UIControl, AnyAppThemable
Component present a view with thumb image and line of progress. You can also control current value of Slider.
let slider = Slider()
let slider = Slider()
slider.addTarget(self, action: #selector(sliderDidChange(_:)), for: .valueChanged)
@objc private func sliderDidChange(_ slider: Slider) {
print(slider.value)
}
slider.minimumValue = 0
slider.maximumValue = 1000
slider.value = 500
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.