Skip to content

Change Switch value(isOn property) programatically #2

@mtaroco

Description

@mtaroco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions