on master help sign in
Update the readme, bump up the version 1.0.0
commit878da616db86cc87bdf475c2c90af410b0b1e290 authorGunay Mert Karadogan <mertkaradogan@gmail.com> dateSun 12 Jul 2015, 16:12 (11 years ago) parent1e5a91f
5 files changed+18−20
GMStepper.podspec+1−1 GMStepper/GMStepper.swift+1 GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard+3−15 README.md+13−4 Screenshots/screenshot_0.gif
GMStepper.podspec+1−1
@@ -1,6 +1,6 @@
11Pod::Spec.new do |s|
22 s.name = "GMStepper"
3− s.version = "0.2.0"
3+ s.version = "1.0.0"
44 s.summary = "A stepper with a sliding label in the middle."
55 s.homepage = "https://github.com/gmertk/GMStepper"
66 s.screenshots = "https://dl.dropboxusercontent.com/u/4397140/pod-screenshots/screenshot_1.png"
GMStepper/GMStepper.swift+1
@@ -49,6 +49,7 @@ import UIKit
4949 /// The same as UIStepper's autorepeat. If true, holding on the buttons or keeping the pan gesture alters the value repeatedly. Defaults to true.
5050 @IBInspectable public var autorepeat: Bool = true
5151
52+ /// If the value is integer, it is shown without floating point.
5253 @IBInspectable public var showIntegerIfDoubleIsInteger: Bool = true
5354
5455 /// Text on the left button. Be sure that it fits in the button. Defaults to "-".
GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard+3−15
@@ -24,17 +24,11 @@
2424 <constraint firstAttribute="height" constant="44" id="6mC-hP-wFD"/>
2525 </constraints>
2626 <userDefinedRuntimeAttributes>
27− <userDefinedRuntimeAttribute type="number" keyPath="minimumValue">
28− <real key="value" value="2"/>
29− </userDefinedRuntimeAttribute>
3027 <userDefinedRuntimeAttribute type="number" keyPath="maximumValue">
31− <integer key="value" value="100"/>
28+ <real key="value" value="25"/>
3229 </userDefinedRuntimeAttribute>
3330 <userDefinedRuntimeAttribute type="number" keyPath="stepValue">
34− <real key="value" value="0.5"/>
35− </userDefinedRuntimeAttribute>
36− <userDefinedRuntimeAttribute type="number" keyPath="value">
37− <real key="value" value="2.1000000000000001"/>
31+ <real key="value" value="5"/>
3832 </userDefinedRuntimeAttribute>
3933 </userDefinedRuntimeAttributes>
4034 </view>
@@ -46,12 +40,6 @@
4640 <constraint firstAttribute="width" constant="320" id="ji4-Pf-1fZ"/>
4741 </constraints>
4842 <userDefinedRuntimeAttributes>
49− <userDefinedRuntimeAttribute type="number" keyPath="minimumValue">
50− <real key="value" value="0.40000000000000002"/>
51− </userDefinedRuntimeAttribute>
52− <userDefinedRuntimeAttribute type="number" keyPath="maximumValue">
53− <real key="value" value="100"/>
54− </userDefinedRuntimeAttribute>
5543 <userDefinedRuntimeAttribute type="color" keyPath="buttonsBackgroundColor">
5644 <color key="value" red="1" green="0.3591497541" blue="0.36842127060000002" alpha="1" colorSpace="calibratedRGB"/>
5745 </userDefinedRuntimeAttribute>
@@ -68,7 +56,7 @@
6856 <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="calibratedRGB"/>
6957 </userDefinedRuntimeAttribute>
7058 <userDefinedRuntimeAttribute type="number" keyPath="stepValue">
71− <real key="value" value="0.40000000000000002"/>
59+ <real key="value" value="0.69999999999999996"/>
7260 </userDefinedRuntimeAttribute>
7361 </userDefinedRuntimeAttributes>
7462 </view>
README.md+13−4
@@ -27,14 +27,23 @@ If you want to use storyboards, just drop a UIView into your storyboard and set
2727## Properties
2828```swift
2929/// Current value of the stepper. Defaults to 0.
30−var value: Int = 0
30+var value: Double = 0
3131
3232/// Minimum value. Must be less than maximumValue. Defaults to 0.
33−var minimumValue: Int = 0
33+var minimumValue: Double = 0
3434
35−/// Maximum value. Must be more than minimumValue. Defaults to 10.
36−var maximumValue: Int = 10
35+/// Maximum value. Must be more than minimumValue. Defaults to 100.
36+var maximumValue: Double = 100
3737
38+/// Step/Increment value as in UIStepper. Defaults to 1.
39+var stepValue: Double = 1
40+
41+/// The same as UIStepper's autorepeat. If true, holding on the buttons or keeping the pan gesture alters the value repeatedly. Defaults to true.
42+var autorepeat: Bool = true
43+
44+/// If the value is integer, it is shown without floating point.
45+var showIntegerIfDoubleIsInteger: Bool = true
46+
3847/// Text on the left button. Be sure that it fits in the button. Defaults to "-".
3948var leftButtonText: String = "-"
4049
Screenshots/screenshot_0.gif

Binary file not shown.