diff --git a/Pod/MMMSwitch.m b/Pod/MMMSwitch.m index f5485cf..2208b51 100644 --- a/Pod/MMMSwitch.m +++ b/Pod/MMMSwitch.m @@ -716,7 +716,7 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event if (touchInsideThumb && touchInsideSwitch) { - self.currentState = self.isOn ? MMMSwitchStateOn : MMMSwitchStateOff; + [self setOn:!self.isOn animated:YES]; } else if (!(touchInsideThumb) && touchInsideSwitch) {