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
insert min and max value in textField to update range slide, and if slide value is changed textfields should also updated
The text was updated successfully, but these errors were encountered:
this feature has been already added
using by slider delegate
update slider e.g in viewDidLoad minRange.addTarget(self, action: #selector(minRangeTextFieldChanged), for: .editingChanged) // function Defination @objc func minRangeTextFieldChanged(){
if minRange.text?.count == 0 { slider.selectedMinValue = 0 slider.setNeedsLayout() } guard let minNumber = NumberFormatter().number(from: minRange.text ?? "0") else {return } guard let maxNumber = NumberFormatter().number(from: maxRange.text ?? "0") else {return } let minFloat = CGFloat(truncating: minNumber) let maxFloat = CGFloat(truncating: maxNumber) if minFloat < maxFloat { slider.selectedMinValue = minFloat slider.setNeedsLayout() }
}
Sorry, something went wrong.
No branches or pull requests
New Issue Checklist
Issue Description
insert min and max value in textField to update range slide, and if slide value is changed textfields should also updated
The text was updated successfully, but these errors were encountered: