-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
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
Unable to set selectedMaxValue, selectedMinValue #87
Comments
You need to call |
Yes it works. |
Hope it could be fixed in the near future. |
I had mine in a tableViewCell and this still didn't work. I had to wrap it in a DispatchQueue.main.async { } call and then call setNeedsLayout() inside the dispatchQueue. You can actually see the slider move into place sometimes. I should have just built my own control. |
Search for following code in RangeSeekSlider.swift file
and add refresh method call in didSet like this:
Do the same for selectedMinValue |
@chitrakush this caused a crash due to recursion, as refresh() also sets selectMinValue or selectMaxValue. Did you not experience this? |
@Beech316 please let me know if you managed to solve the problem? |
As I am Assigning the CGFloat value in the viewDidAppear method it does not slide to my given value.
The text was updated successfully, but these errors were encountered: