Skip to content
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

How do we know the current selected Knob? #27

Open
patrickmarshall opened this issue Mar 18, 2018 · 1 comment
Open

How do we know the current selected Knob? #27

patrickmarshall opened this issue Mar 18, 2018 · 1 comment

Comments

@patrickmarshall
Copy link

patrickmarshall commented Mar 18, 2018

Hello Brian!
This is a very good pod btw!
Im using this pod regularly in my project.

Anyway there is something I want to ask,
In @IBAction func rangeSliderValueChanged(_ sender: Any),
how do we know the current selected Knob?

I'm about to change the step according to the current selected Knob value.
If it's getting higher than the step also get higher.
if it's getting lower than the step getting more precision.

example:
if rangeSlider.lowerValue < 1000000.0 {
rangeSlider.stepValue = 10000.0
} else if rangeSlider.lowerValue < 1000000.0 {
rangeSlider.stepValue = 100000.0
} else {
rangeSlider.stepValue = 1000000
}
but in that case, it only handle the lowerValue.

Thank you :)

@NancyKashyap-Stride
Copy link

Hello

I have similar requirement - Can I get current selected Knob?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants