on master help sign in
Fix warnings and storyboard errors
commit96389e6d753a197881cb14f905550ed6e2602467 authorGunay Mert Karadogan <mertkaradogan@gmail.com> dateWed 5 Oct 2016, 08:12 (10 years ago) parentc136918
6 files changed+147−166
GMStepper.podspec+1−1 GMStepperExample/GMStepperExample.xcodeproj/project.pbxproj+103−116 GMStepperExample/GMStepperExample/AppDelegate.swift+10−10 GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard+30−34 GMStepperExample/GMStepperExampleTests/GMStepperExampleTests.swift+3−3 GMStepperExample/GMStepperExampleTests/Info.plist−2
GMStepper.podspec+1−1
@@ -1,6 +1,6 @@
11Pod::Spec.new do |s|
22 s.name = "GMStepper"
3− s.version = "1.2.0"
3+ s.version = "2.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"
GMStepperExample/GMStepperExample.xcodeproj/project.pbxproj+103−116
@@ -7,18 +7,18 @@
77 objects = {
88
99/* Begin PBXBuildFile section */
10− 3169DD3E1B496C33009791D1 /* GMStepper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319C195B1B48445E005EFEE5 /* GMStepper.swift */; };
10+ 3116C0DB1DA4DD360015AC69 /* GMStepperExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3116C0DA1DA4DD360015AC69 /* GMStepperExampleTests.swift */; };
11+ 3198AC771DA4DEE500311FB3 /* GMStepper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319C195B1B48445E005EFEE5 /* GMStepper.swift */; };
1112 319C19381B4843EB005EFEE5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319C19371B4843EB005EFEE5 /* AppDelegate.swift */; };
1213 319C193A1B4843EB005EFEE5 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319C19391B4843EB005EFEE5 /* ViewController.swift */; };
1314 319C193D1B4843EB005EFEE5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 319C193B1B4843EB005EFEE5 /* Main.storyboard */; };
1415 319C193F1B4843EB005EFEE5 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 319C193E1B4843EB005EFEE5 /* Images.xcassets */; };
1516 319C19421B4843EB005EFEE5 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 319C19401B4843EB005EFEE5 /* LaunchScreen.xib */; };
16− 319C194E1B4843EB005EFEE5 /* GMStepperExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319C194D1B4843EB005EFEE5 /* GMStepperExampleTests.swift */; };
1717 319C195C1B48445E005EFEE5 /* GMStepper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 319C195B1B48445E005EFEE5 /* GMStepper.swift */; };
1818/* End PBXBuildFile section */
1919
2020/* Begin PBXContainerItemProxy section */
21− 319C19481B4843EB005EFEE5 /* PBXContainerItemProxy */ = {
21+ 3116C0DD1DA4DD360015AC69 /* PBXContainerItemProxy */ = {
2222 isa = PBXContainerItemProxy;
2323 containerPortal = 319C192A1B4843EB005EFEE5 /* Project object */;
2424 proxyType = 1;
@@ -28,6 +28,9 @@
2828/* End PBXContainerItemProxy section */
2929
3030/* Begin PBXFileReference section */
31+ 3116C0D81DA4DD360015AC69 /* GMStepperExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GMStepperExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
32+ 3116C0DA1DA4DD360015AC69 /* GMStepperExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GMStepperExampleTests.swift; sourceTree = "<group>"; };
33+ 3116C0DC1DA4DD360015AC69 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3134 319C19321B4843EB005EFEE5 /* GMStepperExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GMStepperExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
3235 319C19361B4843EB005EFEE5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3336 319C19371B4843EB005EFEE5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -35,21 +38,18 @@
3538 319C193C1B4843EB005EFEE5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3639 319C193E1B4843EB005EFEE5 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
3740 319C19411B4843EB005EFEE5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
38− 319C19471B4843EB005EFEE5 /* GMStepperExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GMStepperExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
39− 319C194C1B4843EB005EFEE5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
40− 319C194D1B4843EB005EFEE5 /* GMStepperExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GMStepperExampleTests.swift; sourceTree = "<group>"; };
4141 319C195B1B48445E005EFEE5 /* GMStepper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GMStepper.swift; sourceTree = "<group>"; };
4242/* End PBXFileReference section */
4343
4444/* Begin PBXFrameworksBuildPhase section */
45− 319C192F1B4843EB005EFEE5 /* Frameworks */ = {
45+ 3116C0D51DA4DD360015AC69 /* Frameworks */ = {
4646 isa = PBXFrameworksBuildPhase;
4747 buildActionMask = 2147483647;
4848 files = (
4949 );
5050 runOnlyForDeploymentPostprocessing = 0;
5151 };
52− 319C19441B4843EB005EFEE5 /* Frameworks */ = {
52+ 319C192F1B4843EB005EFEE5 /* Frameworks */ = {
5353 isa = PBXFrameworksBuildPhase;
5454 buildActionMask = 2147483647;
5555 files = (
@@ -59,12 +59,21 @@
5959/* End PBXFrameworksBuildPhase section */
6060
6161/* Begin PBXGroup section */
62+ 3116C0D91DA4DD360015AC69 /* GMStepperExampleTests */ = {
63+ isa = PBXGroup;
64+ children = (
65+ 3116C0DA1DA4DD360015AC69 /* GMStepperExampleTests.swift */,
66+ 3116C0DC1DA4DD360015AC69 /* Info.plist */,
67+ );
68+ path = GMStepperExampleTests;
69+ sourceTree = "<group>";
70+ };
6271 319C19291B4843EB005EFEE5 = {
6372 isa = PBXGroup;
6473 children = (
6574 319C195A1B48445E005EFEE5 /* GMStepper */,
6675 319C19341B4843EB005EFEE5 /* GMStepperExample */,
67− 319C194A1B4843EB005EFEE5 /* GMStepperExampleTests */,
76+ 3116C0D91DA4DD360015AC69 /* GMStepperExampleTests */,
6877 319C19331B4843EB005EFEE5 /* Products */,
6978 );
7079 sourceTree = "<group>";
@@ -73,7 +82,7 @@
7382 isa = PBXGroup;
7483 children = (
7584 319C19321B4843EB005EFEE5 /* GMStepperExample.app */,
76− 319C19471B4843EB005EFEE5 /* GMStepperExampleTests.xctest */,
85+ 3116C0D81DA4DD360015AC69 /* GMStepperExampleTests.xctest */,
7786 );
7887 name = Products;
7988 sourceTree = "<group>";
@@ -99,23 +108,6 @@
99108 name = "Supporting Files";
100109 sourceTree = "<group>";
101110 };
102− 319C194A1B4843EB005EFEE5 /* GMStepperExampleTests */ = {
103− isa = PBXGroup;
104− children = (
105− 319C194D1B4843EB005EFEE5 /* GMStepperExampleTests.swift */,
106− 319C194B1B4843EB005EFEE5 /* Supporting Files */,
107− );
108− path = GMStepperExampleTests;
109− sourceTree = "<group>";
110− };
111− 319C194B1B4843EB005EFEE5 /* Supporting Files */ = {
112− isa = PBXGroup;
113− children = (
114− 319C194C1B4843EB005EFEE5 /* Info.plist */,
115− );
116− name = "Supporting Files";
117− sourceTree = "<group>";
118− };
119111 319C195A1B48445E005EFEE5 /* GMStepper */ = {
120112 isa = PBXGroup;
121113 children = (
@@ -128,6 +120,24 @@
128120/* End PBXGroup section */
129121
130122/* Begin PBXNativeTarget section */
123+ 3116C0D71DA4DD360015AC69 /* GMStepperExampleTests */ = {
124+ isa = PBXNativeTarget;
125+ buildConfigurationList = 3116C0DF1DA4DD360015AC69 /* Build configuration list for PBXNativeTarget "GMStepperExampleTests" */;
126+ buildPhases = (
127+ 3116C0D41DA4DD360015AC69 /* Sources */,
128+ 3116C0D51DA4DD360015AC69 /* Frameworks */,
129+ 3116C0D61DA4DD360015AC69 /* Resources */,
130+ );
131+ buildRules = (
132+ );
133+ dependencies = (
134+ 3116C0DE1DA4DD360015AC69 /* PBXTargetDependency */,
135+ );
136+ name = GMStepperExampleTests;
137+ productName = GMStepperExampleTests;
138+ productReference = 3116C0D81DA4DD360015AC69 /* GMStepperExampleTests.xctest */;
139+ productType = "com.apple.product-type.bundle.unit-test";
140+ };
131141 319C19311B4843EB005EFEE5 /* GMStepperExample */ = {
132142 isa = PBXNativeTarget;
133143 buildConfigurationList = 319C19511B4843EB005EFEE5 /* Build configuration list for PBXNativeTarget "GMStepperExample" */;
@@ -145,24 +155,6 @@
145155 productReference = 319C19321B4843EB005EFEE5 /* GMStepperExample.app */;
146156 productType = "com.apple.product-type.application";
147157 };
148− 319C19461B4843EB005EFEE5 /* GMStepperExampleTests */ = {
149− isa = PBXNativeTarget;
150− buildConfigurationList = 319C19541B4843EB005EFEE5 /* Build configuration list for PBXNativeTarget "GMStepperExampleTests" */;
151− buildPhases = (
152− 319C19431B4843EB005EFEE5 /* Sources */,
153− 319C19441B4843EB005EFEE5 /* Frameworks */,
154− 319C19451B4843EB005EFEE5 /* Resources */,
155− );
156− buildRules = (
157− );
158− dependencies = (
159− 319C19491B4843EB005EFEE5 /* PBXTargetDependency */,
160− );
161− name = GMStepperExampleTests;
162− productName = GMStepperExampleTests;
163− productReference = 319C19471B4843EB005EFEE5 /* GMStepperExampleTests.xctest */;
164− productType = "com.apple.product-type.bundle.unit-test";
165− };
166158/* End PBXNativeTarget section */
167159
168160/* Begin PBXProject section */
@@ -170,20 +162,19 @@
170162 isa = PBXProject;
171163 attributes = {
172164 LastSwiftMigration = 0700;
173− LastSwiftUpdateCheck = 0700;
165+ LastSwiftUpdateCheck = 0800;
174166 LastUpgradeCheck = 0800;
175167 ORGANIZATIONNAME = "Gunay Mert Karadogan";
176168 TargetAttributes = {
177− 319C19311B4843EB005EFEE5 = {
178− CreatedOnToolsVersion = 6.4;
179− DevelopmentTeam = 289M6XEDV4;
180− LastSwiftMigration = 0800;
169+ 3116C0D71DA4DD360015AC69 = {
170+ CreatedOnToolsVersion = 8.0;
171+ ProvisioningStyle = Automatic;
172+ TestTargetID = 319C19311B4843EB005EFEE5;
181173 };
182− 319C19461B4843EB005EFEE5 = {
174+ 319C19311B4843EB005EFEE5 = {
183175 CreatedOnToolsVersion = 6.4;
184176 DevelopmentTeam = 289M6XEDV4;
185177 LastSwiftMigration = 0800;
186− TestTargetID = 319C19311B4843EB005EFEE5;
187178 };
188179 };
189180 };
@@ -201,58 +192,58 @@
201192 projectRoot = "";
202193 targets = (
203194 319C19311B4843EB005EFEE5 /* GMStepperExample */,
204− 319C19461B4843EB005EFEE5 /* GMStepperExampleTests */,
195+ 3116C0D71DA4DD360015AC69 /* GMStepperExampleTests */,
205196 );
206197 };
207198/* End PBXProject section */
208199
209200/* Begin PBXResourcesBuildPhase section */
210− 319C19301B4843EB005EFEE5 /* Resources */ = {
201+ 3116C0D61DA4DD360015AC69 /* Resources */ = {
211202 isa = PBXResourcesBuildPhase;
212203 buildActionMask = 2147483647;
213204 files = (
214− 319C193D1B4843EB005EFEE5 /* Main.storyboard in Resources */,
215− 319C19421B4843EB005EFEE5 /* LaunchScreen.xib in Resources */,
216− 319C193F1B4843EB005EFEE5 /* Images.xcassets in Resources */,
217205 );
218206 runOnlyForDeploymentPostprocessing = 0;
219207 };
220− 319C19451B4843EB005EFEE5 /* Resources */ = {
208+ 319C19301B4843EB005EFEE5 /* Resources */ = {
221209 isa = PBXResourcesBuildPhase;
222210 buildActionMask = 2147483647;
223211 files = (
212+ 319C193D1B4843EB005EFEE5 /* Main.storyboard in Resources */,
213+ 319C19421B4843EB005EFEE5 /* LaunchScreen.xib in Resources */,
214+ 319C193F1B4843EB005EFEE5 /* Images.xcassets in Resources */,
224215 );
225216 runOnlyForDeploymentPostprocessing = 0;
226217 };
227218/* End PBXResourcesBuildPhase section */
228219
229220/* Begin PBXSourcesBuildPhase section */
230− 319C192E1B4843EB005EFEE5 /* Sources */ = {
221+ 3116C0D41DA4DD360015AC69 /* Sources */ = {
231222 isa = PBXSourcesBuildPhase;
232223 buildActionMask = 2147483647;
233224 files = (
234− 319C193A1B4843EB005EFEE5 /* ViewController.swift in Sources */,
235− 319C195C1B48445E005EFEE5 /* GMStepper.swift in Sources */,
236− 319C19381B4843EB005EFEE5 /* AppDelegate.swift in Sources */,
225+ 3116C0DB1DA4DD360015AC69 /* GMStepperExampleTests.swift in Sources */,
226+ 3198AC771DA4DEE500311FB3 /* GMStepper.swift in Sources */,
237227 );
238228 runOnlyForDeploymentPostprocessing = 0;
239229 };
240− 319C19431B4843EB005EFEE5 /* Sources */ = {
230+ 319C192E1B4843EB005EFEE5 /* Sources */ = {
241231 isa = PBXSourcesBuildPhase;
242232 buildActionMask = 2147483647;
243233 files = (
244− 319C194E1B4843EB005EFEE5 /* GMStepperExampleTests.swift in Sources */,
245− 3169DD3E1B496C33009791D1 /* GMStepper.swift in Sources */,
234+ 319C193A1B4843EB005EFEE5 /* ViewController.swift in Sources */,
235+ 319C195C1B48445E005EFEE5 /* GMStepper.swift in Sources */,
236+ 319C19381B4843EB005EFEE5 /* AppDelegate.swift in Sources */,
246237 );
247238 runOnlyForDeploymentPostprocessing = 0;
248239 };
249240/* End PBXSourcesBuildPhase section */
250241
251242/* Begin PBXTargetDependency section */
252− 319C19491B4843EB005EFEE5 /* PBXTargetDependency */ = {
243+ 3116C0DE1DA4DD360015AC69 /* PBXTargetDependency */ = {
253244 isa = PBXTargetDependency;
254245 target = 319C19311B4843EB005EFEE5 /* GMStepperExample */;
255− targetProxy = 319C19481B4843EB005EFEE5 /* PBXContainerItemProxy */;
246+ targetProxy = 3116C0DD1DA4DD360015AC69 /* PBXContainerItemProxy */;
256247 };
257248/* End PBXTargetDependency section */
258249
@@ -276,6 +267,42 @@
276267/* End PBXVariantGroup section */
277268
278269/* Begin XCBuildConfiguration section */
270+ 3116C0E01DA4DD360015AC69 /* Debug */ = {
271+ isa = XCBuildConfiguration;
272+ buildSettings = {
273+ BUNDLE_LOADER = "$(TEST_HOST)";
274+ CLANG_ANALYZER_NONNULL = YES;
275+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
276+ CLANG_WARN_SUSPICIOUS_MOVES = YES;
277+ DEBUG_INFORMATION_FORMAT = dwarf;
278+ INFOPLIST_FILE = GMStepperExampleTests/Info.plist;
279+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
280+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
281+ PRODUCT_BUNDLE_IDENTIFIER = com.gmertk.GMStepperExampleTests;
282+ PRODUCT_NAME = "$(TARGET_NAME)";
283+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
284+ SWIFT_VERSION = 3.0;
285+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepperExample.app/GMStepperExample";
286+ };
287+ name = Debug;
288+ };
289+ 3116C0E11DA4DD360015AC69 /* Release */ = {
290+ isa = XCBuildConfiguration;
291+ buildSettings = {
292+ BUNDLE_LOADER = "$(TEST_HOST)";
293+ CLANG_ANALYZER_NONNULL = YES;
294+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
295+ CLANG_WARN_SUSPICIOUS_MOVES = YES;
296+ INFOPLIST_FILE = GMStepperExampleTests/Info.plist;
297+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
298+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
299+ PRODUCT_BUNDLE_IDENTIFIER = com.gmertk.GMStepperExampleTests;
300+ PRODUCT_NAME = "$(TARGET_NAME)";
301+ SWIFT_VERSION = 3.0;
302+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepperExample.app/GMStepperExample";
303+ };
304+ name = Release;
305+ };
279306 319C194F1B4843EB005EFEE5 /* Debug */ = {
280307 isa = XCBuildConfiguration;
281308 buildSettings = {
@@ -389,72 +416,32 @@
389416 };
390417 name = Release;
391418 };
392− 319C19551B4843EB005EFEE5 /* Debug */ = {
393− isa = XCBuildConfiguration;
394− buildSettings = {
395− BUNDLE_LOADER = "$(TEST_HOST)";
396− DEVELOPMENT_TEAM = 289M6XEDV4;
397− FRAMEWORK_SEARCH_PATHS = (
398− "$(SDKROOT)/Developer/Library/Frameworks",
399− "$(inherited)",
400− );
401− GCC_PREPROCESSOR_DEFINITIONS = (
402− "DEBUG=1",
403− "$(inherited)",
404− );
405− INFOPLIST_FILE = GMStepperExampleTests/Info.plist;
406− LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
407− PRODUCT_BUNDLE_IDENTIFIER = "com.gunaymert.$(PRODUCT_NAME:rfc1034identifier)";
408− PRODUCT_NAME = "$(TARGET_NAME)";
409− SWIFT_VERSION = 3.0;
410− TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepperExample.app/GMStepperExample";
411− };
412− name = Debug;
413− };
414− 319C19561B4843EB005EFEE5 /* Release */ = {
415− isa = XCBuildConfiguration;
416− buildSettings = {
417− BUNDLE_LOADER = "$(TEST_HOST)";
418− DEVELOPMENT_TEAM = 289M6XEDV4;
419− FRAMEWORK_SEARCH_PATHS = (
420− "$(SDKROOT)/Developer/Library/Frameworks",
421− "$(inherited)",
422− );
423− INFOPLIST_FILE = GMStepperExampleTests/Info.plist;
424− LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
425− PRODUCT_BUNDLE_IDENTIFIER = "com.gunaymert.$(PRODUCT_NAME:rfc1034identifier)";
426− PRODUCT_NAME = "$(TARGET_NAME)";
427− SWIFT_VERSION = 3.0;
428− TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepperExample.app/GMStepperExample";
429− };
430− name = Release;
431− };
432419/* End XCBuildConfiguration section */
433420
434421/* Begin XCConfigurationList section */
435− 319C192D1B4843EB005EFEE5 /* Build configuration list for PBXProject "GMStepperExample" */ = {
422+ 3116C0DF1DA4DD360015AC69 /* Build configuration list for PBXNativeTarget "GMStepperExampleTests" */ = {
436423 isa = XCConfigurationList;
437424 buildConfigurations = (
438− 319C194F1B4843EB005EFEE5 /* Debug */,
439− 319C19501B4843EB005EFEE5 /* Release */,
425+ 3116C0E01DA4DD360015AC69 /* Debug */,
426+ 3116C0E11DA4DD360015AC69 /* Release */,
440427 );
441428 defaultConfigurationIsVisible = 0;
442429 defaultConfigurationName = Release;
443430 };
444− 319C19511B4843EB005EFEE5 /* Build configuration list for PBXNativeTarget "GMStepperExample" */ = {
431+ 319C192D1B4843EB005EFEE5 /* Build configuration list for PBXProject "GMStepperExample" */ = {
445432 isa = XCConfigurationList;
446433 buildConfigurations = (
447− 319C19521B4843EB005EFEE5 /* Debug */,
448− 319C19531B4843EB005EFEE5 /* Release */,
434+ 319C194F1B4843EB005EFEE5 /* Debug */,
435+ 319C19501B4843EB005EFEE5 /* Release */,
449436 );
450437 defaultConfigurationIsVisible = 0;
451438 defaultConfigurationName = Release;
452439 };
453− 319C19541B4843EB005EFEE5 /* Build configuration list for PBXNativeTarget "GMStepperExampleTests" */ = {
440+ 319C19511B4843EB005EFEE5 /* Build configuration list for PBXNativeTarget "GMStepperExample" */ = {
454441 isa = XCConfigurationList;
455442 buildConfigurations = (
456− 319C19551B4843EB005EFEE5 /* Debug */,
457− 319C19561B4843EB005EFEE5 /* Release */,
443+ 319C19521B4843EB005EFEE5 /* Debug */,
444+ 319C19531B4843EB005EFEE5 /* Release */,
458445 );
459446 defaultConfigurationIsVisible = 0;
460447 defaultConfigurationName = Release;
GMStepperExample/GMStepperExample/AppDelegate.swift+10−10
@@ -14,33 +14,33 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1414 var window: UIWindow?
1515
1616
17− func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
17+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
1818 // Override point for customization after application launch.
1919 return true
2020 }
2121
22− func applicationWillResignActive(application: UIApplication) {
22+ func applicationWillResignActive(_ application: UIApplication) {
2323 // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24− // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
24+ // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
2525 }
2626
27− func applicationDidEnterBackground(application: UIApplication) {
27+ func applicationDidEnterBackground(_ application: UIApplication) {
2828 // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
2929 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
3030 }
3131
32− func applicationWillEnterForeground(application: UIApplication) {
33− // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
32+ func applicationWillEnterForeground(_ application: UIApplication) {
33+ // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
3434 }
3535
36− func applicationDidBecomeActive(application: UIApplication) {
36+ func applicationDidBecomeActive(_ application: UIApplication) {
3737 // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
3838 }
3939
40− func applicationWillTerminate(application: UIApplication) {
40+ func applicationWillTerminate(_ application: UIApplication) {
4141 // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
4242 }
43−
44−
43+
44+
4545}
4646
GMStepperExample/GMStepperExample/Base.lproj/Main.storyboard+30−34
@@ -1,9 +1,10 @@
11<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2−<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="vXZ-lx-hvc">
2+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
33 <dependencies>
44 <deployment identifier="iOS"/>
5− <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
5+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
66 <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
7+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
78 </dependencies>
89 <scenes>
910 <!--View Controller-->
@@ -15,12 +16,11 @@
1516 <viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
1617 </layoutGuides>
1718 <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
18− <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
19+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
1920 <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
2021 <subviews>
2122 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AU6-4C-B2F" customClass="GMStepper" customModule="GMStepperExample" customModuleProvider="target">
22− <rect key="frame" x="28" y="28" width="544" height="44"/>
23− <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
23+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2424 <constraints>
2525 <constraint firstAttribute="height" constant="44" id="6mC-hP-wFD"/>
2626 </constraints>
@@ -34,27 +34,26 @@
3434 </userDefinedRuntimeAttributes>
3535 </view>
3636 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="if7-U5-bAM" customClass="GMStepper" customModule="GMStepperExample" customModuleProvider="target">
37− <rect key="frame" x="140" y="116" width="320" height="66"/>
38− <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
37+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3938 <constraints>
4039 <constraint firstAttribute="height" constant="66" id="iQi-6P-vt9"/>
4140 <constraint firstAttribute="width" constant="320" id="ji4-Pf-1fZ"/>
4241 </constraints>
4342 <userDefinedRuntimeAttributes>
4443 <userDefinedRuntimeAttribute type="color" keyPath="buttonsBackgroundColor">
45− <color key="value" red="1" green="0.3591497541" blue="0.36842127060000002" alpha="1" colorSpace="calibratedRGB"/>
44+ <color key="value" red="1" green="0.3591497541" blue="0.36842127060000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
4645 </userDefinedRuntimeAttribute>
4746 <userDefinedRuntimeAttribute type="color" keyPath="labelTextColor">
48− <color key="value" red="1" green="0.3591497541" blue="0.36842127060000002" alpha="1" colorSpace="calibratedRGB"/>
47+ <color key="value" red="1" green="0.3591497541" blue="0.36842127060000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
4948 </userDefinedRuntimeAttribute>
5049 <userDefinedRuntimeAttribute type="color" keyPath="labelBackgroundColor">
51− <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="calibratedRGB"/>
50+ <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
5251 </userDefinedRuntimeAttribute>
5352 <userDefinedRuntimeAttribute type="color" keyPath="buttonsTextColor">
54− <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="calibratedRGB"/>
53+ <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
5554 </userDefinedRuntimeAttribute>
5655 <userDefinedRuntimeAttribute type="color" keyPath="limitHitAnimationColor">
57− <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="calibratedRGB"/>
56+ <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
5857 </userDefinedRuntimeAttribute>
5958 <userDefinedRuntimeAttribute type="number" keyPath="stepValue">
6059 <real key="value" value="0.5"/>
@@ -62,49 +61,47 @@
6261 </userDefinedRuntimeAttributes>
6362 </view>
6463 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="R9n-I0-fq7" customClass="GMStepper" customModule="GMStepperExample" customModuleProvider="target">
65− <rect key="frame" x="200" y="226" width="200" height="66"/>
66− <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
64+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
6765 <constraints>
6866 <constraint firstAttribute="width" constant="200" id="dVu-w0-mf0"/>
6967 <constraint firstAttribute="height" constant="66" id="ie8-vl-NAV"/>
7068 </constraints>
7169 <userDefinedRuntimeAttributes>
7270 <userDefinedRuntimeAttribute type="color" keyPath="buttonsBackgroundColor">
73− <color key="value" red="0.1819814891" green="0.69426733259999995" blue="0.53024792669999998" alpha="1" colorSpace="calibratedRGB"/>
71+ <color key="value" red="0.1819814891" green="0.69426733259999995" blue="0.53024792669999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
7472 </userDefinedRuntimeAttribute>
7573 <userDefinedRuntimeAttribute type="color" keyPath="labelTextColor">
76− <color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
74+ <color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
7775 </userDefinedRuntimeAttribute>
7876 <userDefinedRuntimeAttribute type="color" keyPath="labelBackgroundColor">
79− <color key="value" red="0.6588235294" green="0.85882352939999995" blue="0.6588235294" alpha="1" colorSpace="calibratedRGB"/>
77+ <color key="value" red="0.6588235294" green="0.85882352939999995" blue="0.6588235294" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
8078 </userDefinedRuntimeAttribute>
8179 <userDefinedRuntimeAttribute type="color" keyPath="buttonsTextColor">
82− <color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
80+ <color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
8381 </userDefinedRuntimeAttribute>
8482 <userDefinedRuntimeAttribute type="color" keyPath="limitHitAnimationColor">
85− <color key="value" red="0.6588235294" green="0.85882352939999995" blue="0.6588235294" alpha="1" colorSpace="calibratedRGB"/>
83+ <color key="value" red="0.6588235294" green="0.85882352939999995" blue="0.6588235294" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
8684 </userDefinedRuntimeAttribute>
8785 </userDefinedRuntimeAttributes>
8886 </view>
8987 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="U8X-8Z-7Mo" customClass="GMStepper" customModule="GMStepperExample" customModuleProvider="target">
90− <rect key="frame" x="28" y="336" width="544" height="44"/>
91− <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
88+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
9289 <constraints>
9390 <constraint firstAttribute="height" constant="44" id="aF3-T7-dIP"/>
9491 <constraint firstAttribute="width" constant="200" id="vhP-7K-vOu"/>
9592 </constraints>
9693 <userDefinedRuntimeAttributes>
9794 <userDefinedRuntimeAttribute type="color" keyPath="buttonsBackgroundColor">
98− <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="calibratedRGB"/>
95+ <color key="value" red="0.90823972230000005" green="0.92638683320000004" blue="0.93171715740000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
9996 </userDefinedRuntimeAttribute>
10097 <userDefinedRuntimeAttribute type="color" keyPath="labelTextColor">
101− <color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
98+ <color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
10299 </userDefinedRuntimeAttribute>
103100 <userDefinedRuntimeAttribute type="color" keyPath="labelBackgroundColor">
104− <color key="value" red="0.98624199629999998" green="0.77968657019999998" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
101+ <color key="value" red="0.98624199629999998" green="0.77968657019999998" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
105102 </userDefinedRuntimeAttribute>
106103 <userDefinedRuntimeAttribute type="color" keyPath="buttonsTextColor">
107− <color key="value" white="1" alpha="1" colorSpace="calibratedWhite"/>
104+ <color key="value" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
108105 </userDefinedRuntimeAttribute>
109106 <userDefinedRuntimeAttribute type="number" keyPath="labelWidthWeight">
110107 <real key="value" value="0.69999999999999996"/>
@@ -115,7 +112,7 @@
115112 <integer key="value" value="0"/>
116113 </userDefinedRuntimeAttribute>
117114 <userDefinedRuntimeAttribute type="color" keyPath="limitHitAnimationColor">
118− <color key="value" red="0.98624199629999998" green="0.77968657019999998" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
115+ <color key="value" red="0.98624199629999998" green="0.77968657019999998" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
119116 </userDefinedRuntimeAttribute>
120117 <userDefinedRuntimeAttribute type="number" keyPath="maximumValue">
121118 <integer key="value" value="100"/>
@@ -128,8 +125,7 @@
128125 </variation>
129126 </view>
130127 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9Ri-Yr-sRs" customClass="GMStepper" customModule="GMStepperExample" customModuleProvider="target">
131− <rect key="frame" x="210" y="424" width="180" height="50"/>
132− <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
128+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
133129 <constraints>
134130 <constraint firstAttribute="width" constant="180" id="dhO-Nd-SFk"/>
135131 <constraint firstAttribute="height" constant="50" id="xPS-vU-cZc"/>
@@ -148,24 +144,24 @@
148144 <real key="value" value="4"/>
149145 </userDefinedRuntimeAttribute>
150146 <userDefinedRuntimeAttribute type="color" keyPath="buttonsBackgroundColor">
151− <color key="value" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
147+ <color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
152148 </userDefinedRuntimeAttribute>
153149 <userDefinedRuntimeAttribute type="color" keyPath="buttonsTextColor">
154− <color key="value" red="1" green="0.47058823529999999" blue="0.15686274510000001" alpha="1" colorSpace="calibratedRGB"/>
150+ <color key="value" red="1" green="0.47058823529999999" blue="0.15686274510000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
155151 </userDefinedRuntimeAttribute>
156152 <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
157− <color key="value" red="1" green="0.47058823529999999" blue="0.15686274510000001" alpha="1" colorSpace="calibratedRGB"/>
153+ <color key="value" red="1" green="0.47058823529999999" blue="0.15686274510000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
158154 </userDefinedRuntimeAttribute>
159155 <userDefinedRuntimeAttribute type="color" keyPath="labelBackgroundColor">
160− <color key="value" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
156+ <color key="value" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
161157 </userDefinedRuntimeAttribute>
162158 <userDefinedRuntimeAttribute type="color" keyPath="labelTextColor">
163− <color key="value" red="1" green="0.47058823529999999" blue="0.15686274510000001" alpha="1" colorSpace="calibratedRGB"/>
159+ <color key="value" red="1" green="0.47058823529999999" blue="0.15686274510000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
164160 </userDefinedRuntimeAttribute>
165161 </userDefinedRuntimeAttributes>
166162 </view>
167163 </subviews>
168− <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
164+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
169165 <constraints>
170166 <constraint firstItem="R9n-I0-fq7" firstAttribute="centerX" secondItem="U8X-8Z-7Mo" secondAttribute="centerX" id="3cD-WW-Qg4"/>
171167 <constraint firstItem="if7-U5-bAM" firstAttribute="top" secondItem="AU6-4C-B2F" secondAttribute="bottom" constant="44" id="662-W9-CUn"/>
GMStepperExample/GMStepperExampleTests/GMStepperExampleTests.swift+3−3
@@ -6,8 +6,8 @@
66// Copyright (c) 2015 Gunay Mert Karadogan. All rights reserved.
77//
88
9−import UIKit
109import XCTest
10+import UIKit
1111
1212class GMStepperExampleTests: XCTestCase {
1313 var stepper: GMStepper!
@@ -37,6 +37,6 @@ class GMStepperExampleTests: XCTestCase {
3737
3838 XCTAssert(stepper.value == stepper.maximumValue, "Pass")
3939 }
40−
41−
40+
41+
4242}
GMStepperExample/GMStepperExampleTests/Info.plist−2
@@ -16,8 +16,6 @@
1616 <string>BNDL</string>
1717 <key>CFBundleShortVersionString</key>
1818 <string>1.0</string>
19− <key>CFBundleSignature</key>
20− <string>????</string>
2119 <key>CFBundleVersion</key>
2220 <string>1</string>
2321</dict>