diff --git a/DGRunkeeperSwitch/DGRunkeeperSwitch.swift b/DGRunkeeperSwitch/DGRunkeeperSwitch.swift index 20b31d8..1c8b9f0 100644 --- a/DGRunkeeperSwitch/DGRunkeeperSwitch.swift +++ b/DGRunkeeperSwitch/DGRunkeeperSwitch.swift @@ -204,10 +204,6 @@ public class DGRunkeeperSwitch: UIControl { } public func setSelectedIndex(selectedIndex: Int, animated: Bool) { - if self.selectedIndex == selectedIndex { - return - } - self.selectedIndex = selectedIndex if animated { UIView.animateWithDuration(animationDuration, delay: 0.0, usingSpringWithDamping: animationSpringDamping, initialSpringVelocity: animationInitialSpringVelocity, options: [UIViewAnimationOptions.BeginFromCurrentState, UIViewAnimationOptions.CurveEaseOut], animations: { () -> Void in