gontovnik / DGRunkeeperSwitch

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

Code from sample will not work #36

Open astrokin opened 7 years ago

astrokin commented 7 years ago

runkeeperSwitch.addTarget(self, action: #selector(ViewController.switchValueDidChange(sender:)), for: .touchUpInside)

target-action mechanism will not work because of added UITapGestureRecognizer to control

gontovnik commented 7 years ago

I think it is a typo. It should be not touchUpInside, but a valueChanged.