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

Change Switch value(isOn property) programatically #2

Open
mtaroco opened this issue Nov 27, 2019 · 0 comments
Open

Change Switch value(isOn property) programatically #2

mtaroco opened this issue Nov 27, 2019 · 0 comments

Comments

@mtaroco
Copy link

mtaroco commented Nov 27, 2019

When trying to change isOn property programmatically, it changes Switch color successfully, but however it does not animate back the switch to its corresponding state position.

What I'm doing is:
1- Initialize a Switch with an OFF state.
2- Turn Switch ON with a gesture.
3- Then for some reason I need to programmatically turn Switch OFF again, so I do switch.isOn = false.

And I see what I detailed before. The switch isn't getting back to it's full OFF state position

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

1 participant