diff --git a/RxExample/RxExample/Examples/Introduction/IntroductionExampleViewController.swift b/RxExample/RxExample/Examples/Introduction/IntroductionExampleViewController.swift index f0bd736f..be18a294 100644 --- a/RxExample/RxExample/Examples/Introduction/IntroductionExampleViewController.swift +++ b/RxExample/RxExample/Examples/Introduction/IntroductionExampleViewController.swift @@ -74,16 +74,10 @@ class IntroductionExampleViewController : ViewController { >- subscribeNext { value in let formatter = NSNumberFormatter() if let doubleValue = formatter.numberFromString(value)?.doubleValue { - if doubleValue > 100 { - self.slider.doubleValue = 100 - self.sliderValue.stringValue = "100" - } else if doubleValue < 0 { - self.slider.doubleValue = 0.0 - self.sliderValue.stringValue = "0" - } self.slider.doubleValue = doubleValue + self.sliderValue.stringValue = "\(Int(doubleValue))" } else { - self.slider.doubleValue = 0.0 + self.slider.doubleValue = 0 self.sliderValue.stringValue = "0" } }