gontovnik / DGRunkeeperSwitch

Runkeeper design switch control
MIT License
1.88k stars 175 forks source link

Add support for empty selection #46

Open SandroMachado opened 7 years ago

SandroMachado commented 7 years ago

This PR closes #45.

With this PR is it possible to do:

runkeeperSwitch.setSelectedIndex(-1, animated: true)

to unselect all the selected items.

I don't know if this is the best approach, please let me know what do you think.