diff --git a/GMStepper.podspec b/GMStepper.podspec index e647673..9ffc68c 100644 --- a/GMStepper.podspec +++ b/GMStepper.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "GMStepper" - s.version = "1.0.1" + s.version = "1.0.2" s.summary = "A stepper with a sliding label in the middle." s.homepage = "https://github.com/gmertk/GMStepper" s.screenshots = "https://dl.dropboxusercontent.com/u/4397140/pod-screenshots/screenshot_1.png" diff --git a/GMStepper/GMStepper.swift b/GMStepper/GMStepper.swift index 140baf1..5e11957 100644 --- a/GMStepper/GMStepper.swift +++ b/GMStepper/GMStepper.swift @@ -233,7 +233,7 @@ import UIKit } } - /// Useful for logging the timer interval. You can call this in the timer handler to test the autorepeat option. + /// Useful for logging the timer interval. You can call this in the timer handler to test the autorepeat option. Not used in the current implementation. lazy var printTimerGaps: () -> () = { var prevTime: CFAbsoluteTime? @@ -303,11 +303,11 @@ extension GMStepper { leftButton.enabled = false rightButton.enabled = false case .Changed: - var translation = gesture.translationInView(label) + let translation = gesture.translationInView(label) gesture.setTranslation(CGPointZero, inView: label) - var slidingRight = gesture.velocityInView(label).x > 0 - var slidingLeft = gesture.velocityInView(label).x < 0 + let slidingRight = gesture.velocityInView(label).x > 0 + let slidingLeft = gesture.velocityInView(label).x < 0 // Move the label with pan if slidingRight { diff --git a/GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard b/GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard index 5f89d2d..8d652d9 100644 --- a/GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard +++ b/GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard @@ -56,7 +56,7 @@ - + diff --git a/GMStepperExample/GMStepperExampleTests/GMStepperExampleTests.swift b/GMStepperExample/GMStepperExampleTests/GMStepperExampleTests.swift index df8d251..69cffaa 100644 --- a/GMStepperExample/GMStepperExampleTests/GMStepperExampleTests.swift +++ b/GMStepperExample/GMStepperExampleTests/GMStepperExampleTests.swift @@ -19,7 +19,7 @@ class GMStepperExampleTests: XCTestCase { func testDefaults() { XCTAssert(stepper.minimumValue == 0, "minimumValue defaults 0") - XCTAssert(stepper.maximumValue == 10, "maximumValue defaults to 10") + XCTAssert(stepper.maximumValue == 100, "maximumValue defaults to 100") XCTAssert(stepper.value == 0, "value defaults to 0") }