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
2.4.1 release note says Removed Switch.setOn function.
I need to change it's state programmatically. How can I do that.
First time switch state changed, after that it doesn't change it's state when I set isOn variable value programmatically.
The text was updated successfully, but these errors were encountered:
Please update to Material 2.4.4.
To change the state programmatically, use:
let control = Switch() control.switchState = .on
or
let control = Switch() control.setSwitchState(state: .on, animated: true) { (control) in // Do something }
let control = Switch() control.isOn = true
If you need any further help, please reopen or create a new issue :)
Sorry, something went wrong.
Thanks, for your update. Now it works as expected :)
daniel-jonathan
No branches or pull requests
2.4.1 release note says Removed Switch.setOn function.
I need to change it's state programmatically. How can I do that.
First time switch state changed, after that it doesn't change it's state when I set isOn variable value programmatically.
The text was updated successfully, but these errors were encountered: