We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Could you tell me how can I set a step value for the circular slider? Thank you very much!
The text was updated successfully, but these errors were encountered:
@HamzaGhazouani could you help me?
Sorry, something went wrong.
It's simple to change value. Value change adding 10
circularSlider.addTarget(self, action: #selector(updateTexts), for: .valueChanged) @objc func updateTexts() { let step: CGFloat = 10 let roundedValue = round(circularSlider.endPointValue / step) * step let value = roundedValue // same as example code let ok = (circularSlider.maximumValue / CGFloat(circularSlider.numberOfRounds)) let ff = ceil(value / ok) maxValueLabel.text = String(format: "%.0f", circularSlider.maximumValue) minValueLabel.text = String(format: "%.0f", circularSlider.minimumValue) currentValueLabel.text = String(format: "%.0f", value) roundsLabel.text = "Round N° " + String(format: "%.0f", ff) }
No branches or pull requests
Hi! Could you tell me how can I set a step value for the circular slider? Thank you very much!
The text was updated successfully, but these errors were encountered: