on master help sign in
Initialise buttons and the label
commita000861fbc30baec5f90d6b9d791cbef0aec8f18 authorGunay Mert Karadogan <mertkaradogan@gmail.com> dateWed 1 Jul 2015, 13:01 (11 years ago) parent0ad81f4
14 files changed+894
GMStepper/GMStepper.xcodeproj/project.pbxproj+508 GMStepper/GMStepper.xcodeproj/project.xcworkspace/contents.xcworkspacedata+7 GMStepper/GMStepper/AppDelegate.swift+46 GMStepper/GMStepper/Assets.xcassets/AppIcon.appiconset/Contents.json+38 GMStepper/GMStepper/Assets.xcassets/Contents.json+6 GMStepper/GMStepper/Base.lproj/LaunchScreen.storyboard+49 GMStepper/GMStepper/Base.lproj/Main.storyboard+25 GMStepper/GMStepper/GMStepper.swift+32 GMStepper/GMStepper/Info.plist+40 GMStepper/GMStepper/ViewController.swift+25 GMStepper/GMStepperTests/GMStepperTests.swift+35 GMStepper/GMStepperTests/Info.plist+24 GMStepper/GMStepperUITests/GMStepperUITests.swift+35 GMStepper/GMStepperUITests/Info.plist+24
GMStepper/GMStepper.xcodeproj/project.pbxprojnew file+508
@@ -0,0 +1,508 @@
1+// !$*UTF8*$!
2+{
3+ archiveVersion = 1;
4+ classes = {
5+ };
6+ objectVersion = 46;
7+ objects = {
8+
9+/* Begin PBXBuildFile section */
10+ 31DCC9F61B43FAB000950781 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31DCC9F51B43FAB000950781 /* AppDelegate.swift */; };
11+ 31DCC9F81B43FAB000950781 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31DCC9F71B43FAB000950781 /* ViewController.swift */; };
12+ 31DCC9FB1B43FAB000950781 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 31DCC9F91B43FAB000950781 /* Main.storyboard */; };
13+ 31DCC9FD1B43FAB000950781 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 31DCC9FC1B43FAB000950781 /* Assets.xcassets */; };
14+ 31DCCA001B43FAB000950781 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 31DCC9FE1B43FAB000950781 /* LaunchScreen.storyboard */; };
15+ 31DCCA0B1B43FAB000950781 /* GMStepperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31DCCA0A1B43FAB000950781 /* GMStepperTests.swift */; };
16+ 31DCCA161B43FAB000950781 /* GMStepperUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31DCCA151B43FAB000950781 /* GMStepperUITests.swift */; };
17+ 31DCCA241B43FB6200950781 /* GMStepper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31DCCA231B43FB6200950781 /* GMStepper.swift */; };
18+/* End PBXBuildFile section */
19+
20+/* Begin PBXContainerItemProxy section */
21+ 31DCCA071B43FAB000950781 /* PBXContainerItemProxy */ = {
22+ isa = PBXContainerItemProxy;
23+ containerPortal = 31DCC9EA1B43FAB000950781 /* Project object */;
24+ proxyType = 1;
25+ remoteGlobalIDString = 31DCC9F11B43FAB000950781;
26+ remoteInfo = GMStepper;
27+ };
28+ 31DCCA121B43FAB000950781 /* PBXContainerItemProxy */ = {
29+ isa = PBXContainerItemProxy;
30+ containerPortal = 31DCC9EA1B43FAB000950781 /* Project object */;
31+ proxyType = 1;
32+ remoteGlobalIDString = 31DCC9F11B43FAB000950781;
33+ remoteInfo = GMStepper;
34+ };
35+/* End PBXContainerItemProxy section */
36+
37+/* Begin PBXFileReference section */
38+ 31DCC9F21B43FAB000950781 /* GMStepper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GMStepper.app; sourceTree = BUILT_PRODUCTS_DIR; };
39+ 31DCC9F51B43FAB000950781 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
40+ 31DCC9F71B43FAB000950781 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
41+ 31DCC9FA1B43FAB000950781 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
42+ 31DCC9FC1B43FAB000950781 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
43+ 31DCC9FF1B43FAB000950781 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
44+ 31DCCA011B43FAB000950781 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
45+ 31DCCA061B43FAB000950781 /* GMStepperTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GMStepperTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
46+ 31DCCA0A1B43FAB000950781 /* GMStepperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GMStepperTests.swift; sourceTree = "<group>"; };
47+ 31DCCA0C1B43FAB000950781 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
48+ 31DCCA111B43FAB000950781 /* GMStepperUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GMStepperUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
49+ 31DCCA151B43FAB000950781 /* GMStepperUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GMStepperUITests.swift; sourceTree = "<group>"; };
50+ 31DCCA171B43FAB000950781 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
51+ 31DCCA231B43FB6200950781 /* GMStepper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GMStepper.swift; sourceTree = "<group>"; };
52+/* End PBXFileReference section */
53+
54+/* Begin PBXFrameworksBuildPhase section */
55+ 31DCC9EF1B43FAB000950781 /* Frameworks */ = {
56+ isa = PBXFrameworksBuildPhase;
57+ buildActionMask = 2147483647;
58+ files = (
59+ );
60+ runOnlyForDeploymentPostprocessing = 0;
61+ };
62+ 31DCCA031B43FAB000950781 /* Frameworks */ = {
63+ isa = PBXFrameworksBuildPhase;
64+ buildActionMask = 2147483647;
65+ files = (
66+ );
67+ runOnlyForDeploymentPostprocessing = 0;
68+ };
69+ 31DCCA0E1B43FAB000950781 /* Frameworks */ = {
70+ isa = PBXFrameworksBuildPhase;
71+ buildActionMask = 2147483647;
72+ files = (
73+ );
74+ runOnlyForDeploymentPostprocessing = 0;
75+ };
76+/* End PBXFrameworksBuildPhase section */
77+
78+/* Begin PBXGroup section */
79+ 31DCC9E91B43FAB000950781 = {
80+ isa = PBXGroup;
81+ children = (
82+ 31DCC9F41B43FAB000950781 /* GMStepper */,
83+ 31DCCA091B43FAB000950781 /* GMStepperTests */,
84+ 31DCCA141B43FAB000950781 /* GMStepperUITests */,
85+ 31DCC9F31B43FAB000950781 /* Products */,
86+ );
87+ sourceTree = "<group>";
88+ };
89+ 31DCC9F31B43FAB000950781 /* Products */ = {
90+ isa = PBXGroup;
91+ children = (
92+ 31DCC9F21B43FAB000950781 /* GMStepper.app */,
93+ 31DCCA061B43FAB000950781 /* GMStepperTests.xctest */,
94+ 31DCCA111B43FAB000950781 /* GMStepperUITests.xctest */,
95+ );
96+ name = Products;
97+ sourceTree = "<group>";
98+ };
99+ 31DCC9F41B43FAB000950781 /* GMStepper */ = {
100+ isa = PBXGroup;
101+ children = (
102+ 31DCC9F51B43FAB000950781 /* AppDelegate.swift */,
103+ 31DCC9F71B43FAB000950781 /* ViewController.swift */,
104+ 31DCCA231B43FB6200950781 /* GMStepper.swift */,
105+ 31DCC9F91B43FAB000950781 /* Main.storyboard */,
106+ 31DCC9FC1B43FAB000950781 /* Assets.xcassets */,
107+ 31DCC9FE1B43FAB000950781 /* LaunchScreen.storyboard */,
108+ 31DCCA011B43FAB000950781 /* Info.plist */,
109+ );
110+ path = GMStepper;
111+ sourceTree = "<group>";
112+ };
113+ 31DCCA091B43FAB000950781 /* GMStepperTests */ = {
114+ isa = PBXGroup;
115+ children = (
116+ 31DCCA0A1B43FAB000950781 /* GMStepperTests.swift */,
117+ 31DCCA0C1B43FAB000950781 /* Info.plist */,
118+ );
119+ path = GMStepperTests;
120+ sourceTree = "<group>";
121+ };
122+ 31DCCA141B43FAB000950781 /* GMStepperUITests */ = {
123+ isa = PBXGroup;
124+ children = (
125+ 31DCCA151B43FAB000950781 /* GMStepperUITests.swift */,
126+ 31DCCA171B43FAB000950781 /* Info.plist */,
127+ );
128+ path = GMStepperUITests;
129+ sourceTree = "<group>";
130+ };
131+/* End PBXGroup section */
132+
133+/* Begin PBXNativeTarget section */
134+ 31DCC9F11B43FAB000950781 /* GMStepper */ = {
135+ isa = PBXNativeTarget;
136+ buildConfigurationList = 31DCCA1A1B43FAB000950781 /* Build configuration list for PBXNativeTarget "GMStepper" */;
137+ buildPhases = (
138+ 31DCC9EE1B43FAB000950781 /* Sources */,
139+ 31DCC9EF1B43FAB000950781 /* Frameworks */,
140+ 31DCC9F01B43FAB000950781 /* Resources */,
141+ );
142+ buildRules = (
143+ );
144+ dependencies = (
145+ );
146+ name = GMStepper;
147+ productName = GMStepper;
148+ productReference = 31DCC9F21B43FAB000950781 /* GMStepper.app */;
149+ productType = "com.apple.product-type.application";
150+ };
151+ 31DCCA051B43FAB000950781 /* GMStepperTests */ = {
152+ isa = PBXNativeTarget;
153+ buildConfigurationList = 31DCCA1D1B43FAB000950781 /* Build configuration list for PBXNativeTarget "GMStepperTests" */;
154+ buildPhases = (
155+ 31DCCA021B43FAB000950781 /* Sources */,
156+ 31DCCA031B43FAB000950781 /* Frameworks */,
157+ 31DCCA041B43FAB000950781 /* Resources */,
158+ );
159+ buildRules = (
160+ );
161+ dependencies = (
162+ 31DCCA081B43FAB000950781 /* PBXTargetDependency */,
163+ );
164+ name = GMStepperTests;
165+ productName = GMStepperTests;
166+ productReference = 31DCCA061B43FAB000950781 /* GMStepperTests.xctest */;
167+ productType = "com.apple.product-type.bundle.unit-test";
168+ };
169+ 31DCCA101B43FAB000950781 /* GMStepperUITests */ = {
170+ isa = PBXNativeTarget;
171+ buildConfigurationList = 31DCCA201B43FAB000950781 /* Build configuration list for PBXNativeTarget "GMStepperUITests" */;
172+ buildPhases = (
173+ 31DCCA0D1B43FAB000950781 /* Sources */,
174+ 31DCCA0E1B43FAB000950781 /* Frameworks */,
175+ 31DCCA0F1B43FAB000950781 /* Resources */,
176+ );
177+ buildRules = (
178+ );
179+ dependencies = (
180+ 31DCCA131B43FAB000950781 /* PBXTargetDependency */,
181+ );
182+ name = GMStepperUITests;
183+ productName = GMStepperUITests;
184+ productReference = 31DCCA111B43FAB000950781 /* GMStepperUITests.xctest */;
185+ productType = "com.apple.product-type.bundle.ui-testing";
186+ };
187+/* End PBXNativeTarget section */
188+
189+/* Begin PBXProject section */
190+ 31DCC9EA1B43FAB000950781 /* Project object */ = {
191+ isa = PBXProject;
192+ attributes = {
193+ LastUpgradeCheck = 0700;
194+ ORGANIZATIONNAME = "Gunay Mert Karadogan";
195+ TargetAttributes = {
196+ 31DCC9F11B43FAB000950781 = {
197+ CreatedOnToolsVersion = 7.0;
198+ };
199+ 31DCCA051B43FAB000950781 = {
200+ CreatedOnToolsVersion = 7.0;
201+ TestTargetID = 31DCC9F11B43FAB000950781;
202+ };
203+ 31DCCA101B43FAB000950781 = {
204+ CreatedOnToolsVersion = 7.0;
205+ TestTargetID = 31DCC9F11B43FAB000950781;
206+ };
207+ };
208+ };
209+ buildConfigurationList = 31DCC9ED1B43FAB000950781 /* Build configuration list for PBXProject "GMStepper" */;
210+ compatibilityVersion = "Xcode 3.2";
211+ developmentRegion = English;
212+ hasScannedForEncodings = 0;
213+ knownRegions = (
214+ en,
215+ Base,
216+ );
217+ mainGroup = 31DCC9E91B43FAB000950781;
218+ productRefGroup = 31DCC9F31B43FAB000950781 /* Products */;
219+ projectDirPath = "";
220+ projectRoot = "";
221+ targets = (
222+ 31DCC9F11B43FAB000950781 /* GMStepper */,
223+ 31DCCA051B43FAB000950781 /* GMStepperTests */,
224+ 31DCCA101B43FAB000950781 /* GMStepperUITests */,
225+ );
226+ };
227+/* End PBXProject section */
228+
229+/* Begin PBXResourcesBuildPhase section */
230+ 31DCC9F01B43FAB000950781 /* Resources */ = {
231+ isa = PBXResourcesBuildPhase;
232+ buildActionMask = 2147483647;
233+ files = (
234+ 31DCCA001B43FAB000950781 /* LaunchScreen.storyboard in Resources */,
235+ 31DCC9FD1B43FAB000950781 /* Assets.xcassets in Resources */,
236+ 31DCC9FB1B43FAB000950781 /* Main.storyboard in Resources */,
237+ );
238+ runOnlyForDeploymentPostprocessing = 0;
239+ };
240+ 31DCCA041B43FAB000950781 /* Resources */ = {
241+ isa = PBXResourcesBuildPhase;
242+ buildActionMask = 2147483647;
243+ files = (
244+ );
245+ runOnlyForDeploymentPostprocessing = 0;
246+ };
247+ 31DCCA0F1B43FAB000950781 /* Resources */ = {
248+ isa = PBXResourcesBuildPhase;
249+ buildActionMask = 2147483647;
250+ files = (
251+ );
252+ runOnlyForDeploymentPostprocessing = 0;
253+ };
254+/* End PBXResourcesBuildPhase section */
255+
256+/* Begin PBXSourcesBuildPhase section */
257+ 31DCC9EE1B43FAB000950781 /* Sources */ = {
258+ isa = PBXSourcesBuildPhase;
259+ buildActionMask = 2147483647;
260+ files = (
261+ 31DCC9F81B43FAB000950781 /* ViewController.swift in Sources */,
262+ 31DCCA241B43FB6200950781 /* GMStepper.swift in Sources */,
263+ 31DCC9F61B43FAB000950781 /* AppDelegate.swift in Sources */,
264+ );
265+ runOnlyForDeploymentPostprocessing = 0;
266+ };
267+ 31DCCA021B43FAB000950781 /* Sources */ = {
268+ isa = PBXSourcesBuildPhase;
269+ buildActionMask = 2147483647;
270+ files = (
271+ 31DCCA0B1B43FAB000950781 /* GMStepperTests.swift in Sources */,
272+ );
273+ runOnlyForDeploymentPostprocessing = 0;
274+ };
275+ 31DCCA0D1B43FAB000950781 /* Sources */ = {
276+ isa = PBXSourcesBuildPhase;
277+ buildActionMask = 2147483647;
278+ files = (
279+ 31DCCA161B43FAB000950781 /* GMStepperUITests.swift in Sources */,
280+ );
281+ runOnlyForDeploymentPostprocessing = 0;
282+ };
283+/* End PBXSourcesBuildPhase section */
284+
285+/* Begin PBXTargetDependency section */
286+ 31DCCA081B43FAB000950781 /* PBXTargetDependency */ = {
287+ isa = PBXTargetDependency;
288+ target = 31DCC9F11B43FAB000950781 /* GMStepper */;
289+ targetProxy = 31DCCA071B43FAB000950781 /* PBXContainerItemProxy */;
290+ };
291+ 31DCCA131B43FAB000950781 /* PBXTargetDependency */ = {
292+ isa = PBXTargetDependency;
293+ target = 31DCC9F11B43FAB000950781 /* GMStepper */;
294+ targetProxy = 31DCCA121B43FAB000950781 /* PBXContainerItemProxy */;
295+ };
296+/* End PBXTargetDependency section */
297+
298+/* Begin PBXVariantGroup section */
299+ 31DCC9F91B43FAB000950781 /* Main.storyboard */ = {
300+ isa = PBXVariantGroup;
301+ children = (
302+ 31DCC9FA1B43FAB000950781 /* Base */,
303+ );
304+ name = Main.storyboard;
305+ sourceTree = "<group>";
306+ };
307+ 31DCC9FE1B43FAB000950781 /* LaunchScreen.storyboard */ = {
308+ isa = PBXVariantGroup;
309+ children = (
310+ 31DCC9FF1B43FAB000950781 /* Base */,
311+ );
312+ name = LaunchScreen.storyboard;
313+ sourceTree = "<group>";
314+ };
315+/* End PBXVariantGroup section */
316+
317+/* Begin XCBuildConfiguration section */
318+ 31DCCA181B43FAB000950781 /* Debug */ = {
319+ isa = XCBuildConfiguration;
320+ buildSettings = {
321+ ALWAYS_SEARCH_USER_PATHS = NO;
322+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
323+ CLANG_CXX_LIBRARY = "libc++";
324+ CLANG_ENABLE_MODULES = YES;
325+ CLANG_ENABLE_OBJC_ARC = YES;
326+ CLANG_WARN_BOOL_CONVERSION = YES;
327+ CLANG_WARN_CONSTANT_CONVERSION = YES;
328+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
329+ CLANG_WARN_EMPTY_BODY = YES;
330+ CLANG_WARN_ENUM_CONVERSION = YES;
331+ CLANG_WARN_INT_CONVERSION = YES;
332+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333+ CLANG_WARN_UNREACHABLE_CODE = YES;
334+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
335+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
336+ COPY_PHASE_STRIP = NO;
337+ DEBUG_INFORMATION_FORMAT = dwarf;
338+ ENABLE_STRICT_OBJC_MSGSEND = YES;
339+ ENABLE_TESTABILITY = YES;
340+ GCC_C_LANGUAGE_STANDARD = gnu99;
341+ GCC_DYNAMIC_NO_PIC = NO;
342+ GCC_NO_COMMON_BLOCKS = YES;
343+ GCC_OPTIMIZATION_LEVEL = 0;
344+ GCC_PREPROCESSOR_DEFINITIONS = (
345+ "DEBUG=1",
346+ "$(inherited)",
347+ );
348+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
349+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
350+ GCC_WARN_UNDECLARED_SELECTOR = YES;
351+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
352+ GCC_WARN_UNUSED_FUNCTION = YES;
353+ GCC_WARN_UNUSED_VARIABLE = YES;
354+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
355+ MTL_ENABLE_DEBUG_INFO = YES;
356+ ONLY_ACTIVE_ARCH = YES;
357+ SDKROOT = iphoneos;
358+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
359+ };
360+ name = Debug;
361+ };
362+ 31DCCA191B43FAB000950781 /* Release */ = {
363+ isa = XCBuildConfiguration;
364+ buildSettings = {
365+ ALWAYS_SEARCH_USER_PATHS = NO;
366+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
367+ CLANG_CXX_LIBRARY = "libc++";
368+ CLANG_ENABLE_MODULES = YES;
369+ CLANG_ENABLE_OBJC_ARC = YES;
370+ CLANG_WARN_BOOL_CONVERSION = YES;
371+ CLANG_WARN_CONSTANT_CONVERSION = YES;
372+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
373+ CLANG_WARN_EMPTY_BODY = YES;
374+ CLANG_WARN_ENUM_CONVERSION = YES;
375+ CLANG_WARN_INT_CONVERSION = YES;
376+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
377+ CLANG_WARN_UNREACHABLE_CODE = YES;
378+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
379+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
380+ COPY_PHASE_STRIP = NO;
381+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
382+ ENABLE_NS_ASSERTIONS = NO;
383+ ENABLE_STRICT_OBJC_MSGSEND = YES;
384+ GCC_C_LANGUAGE_STANDARD = gnu99;
385+ GCC_NO_COMMON_BLOCKS = YES;
386+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
387+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
388+ GCC_WARN_UNDECLARED_SELECTOR = YES;
389+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
390+ GCC_WARN_UNUSED_FUNCTION = YES;
391+ GCC_WARN_UNUSED_VARIABLE = YES;
392+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
393+ MTL_ENABLE_DEBUG_INFO = NO;
394+ SDKROOT = iphoneos;
395+ VALIDATE_PRODUCT = YES;
396+ };
397+ name = Release;
398+ };
399+ 31DCCA1B1B43FAB000950781 /* Debug */ = {
400+ isa = XCBuildConfiguration;
401+ buildSettings = {
402+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
403+ INFOPLIST_FILE = GMStepper/Info.plist;
404+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
405+ PRODUCT_BUNDLE_IDENTIFIER = com.gunaymert.GMStepper;
406+ PRODUCT_NAME = "$(TARGET_NAME)";
407+ };
408+ name = Debug;
409+ };
410+ 31DCCA1C1B43FAB000950781 /* Release */ = {
411+ isa = XCBuildConfiguration;
412+ buildSettings = {
413+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
414+ INFOPLIST_FILE = GMStepper/Info.plist;
415+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
416+ PRODUCT_BUNDLE_IDENTIFIER = com.gunaymert.GMStepper;
417+ PRODUCT_NAME = "$(TARGET_NAME)";
418+ };
419+ name = Release;
420+ };
421+ 31DCCA1E1B43FAB000950781 /* Debug */ = {
422+ isa = XCBuildConfiguration;
423+ buildSettings = {
424+ BUNDLE_LOADER = "$(TEST_HOST)";
425+ INFOPLIST_FILE = GMStepperTests/Info.plist;
426+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
427+ PRODUCT_BUNDLE_IDENTIFIER = com.gunaymert.GMStepperTests;
428+ PRODUCT_NAME = "$(TARGET_NAME)";
429+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepper.app/GMStepper";
430+ };
431+ name = Debug;
432+ };
433+ 31DCCA1F1B43FAB000950781 /* Release */ = {
434+ isa = XCBuildConfiguration;
435+ buildSettings = {
436+ BUNDLE_LOADER = "$(TEST_HOST)";
437+ INFOPLIST_FILE = GMStepperTests/Info.plist;
438+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
439+ PRODUCT_BUNDLE_IDENTIFIER = com.gunaymert.GMStepperTests;
440+ PRODUCT_NAME = "$(TARGET_NAME)";
441+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GMStepper.app/GMStepper";
442+ };
443+ name = Release;
444+ };
445+ 31DCCA211B43FAB000950781 /* Debug */ = {
446+ isa = XCBuildConfiguration;
447+ buildSettings = {
448+ INFOPLIST_FILE = GMStepperUITests/Info.plist;
449+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
450+ PRODUCT_BUNDLE_IDENTIFIER = com.gunaymert.GMStepperUITests;
451+ PRODUCT_NAME = "$(TARGET_NAME)";
452+ TEST_TARGET_NAME = GMStepper;
453+ USES_XCTRUNNER = YES;
454+ };
455+ name = Debug;
456+ };
457+ 31DCCA221B43FAB000950781 /* Release */ = {
458+ isa = XCBuildConfiguration;
459+ buildSettings = {
460+ INFOPLIST_FILE = GMStepperUITests/Info.plist;
461+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
462+ PRODUCT_BUNDLE_IDENTIFIER = com.gunaymert.GMStepperUITests;
463+ PRODUCT_NAME = "$(TARGET_NAME)";
464+ TEST_TARGET_NAME = GMStepper;
465+ USES_XCTRUNNER = YES;
466+ };
467+ name = Release;
468+ };
469+/* End XCBuildConfiguration section */
470+
471+/* Begin XCConfigurationList section */
472+ 31DCC9ED1B43FAB000950781 /* Build configuration list for PBXProject "GMStepper" */ = {
473+ isa = XCConfigurationList;
474+ buildConfigurations = (
475+ 31DCCA181B43FAB000950781 /* Debug */,
476+ 31DCCA191B43FAB000950781 /* Release */,
477+ );
478+ defaultConfigurationIsVisible = 0;
479+ defaultConfigurationName = Release;
480+ };
481+ 31DCCA1A1B43FAB000950781 /* Build configuration list for PBXNativeTarget "GMStepper" */ = {
482+ isa = XCConfigurationList;
483+ buildConfigurations = (
484+ 31DCCA1B1B43FAB000950781 /* Debug */,
485+ 31DCCA1C1B43FAB000950781 /* Release */,
486+ );
487+ defaultConfigurationIsVisible = 0;
488+ };
489+ 31DCCA1D1B43FAB000950781 /* Build configuration list for PBXNativeTarget "GMStepperTests" */ = {
490+ isa = XCConfigurationList;
491+ buildConfigurations = (
492+ 31DCCA1E1B43FAB000950781 /* Debug */,
493+ 31DCCA1F1B43FAB000950781 /* Release */,
494+ );
495+ defaultConfigurationIsVisible = 0;
496+ };
497+ 31DCCA201B43FAB000950781 /* Build configuration list for PBXNativeTarget "GMStepperUITests" */ = {
498+ isa = XCConfigurationList;
499+ buildConfigurations = (
500+ 31DCCA211B43FAB000950781 /* Debug */,
501+ 31DCCA221B43FAB000950781 /* Release */,
502+ );
503+ defaultConfigurationIsVisible = 0;
504+ };
505+/* End XCConfigurationList section */
506+ };
507+ rootObject = 31DCC9EA1B43FAB000950781 /* Project object */;
508+}
GMStepper/GMStepper.xcodeproj/project.xcworkspace/contents.xcworkspacedatanew file+7
@@ -0,0 +1,7 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<Workspace
3+ version = "1.0">
4+ <FileRef
5+ location = "self:GMStepper.xcodeproj">
6+ </FileRef>
7+</Workspace>
GMStepper/GMStepper/AppDelegate.swiftnew file+46
@@ -0,0 +1,46 @@
1+//
2+// AppDelegate.swift
3+// GMStepper
4+//
5+// Created by Gunay Mert Karadogan on 1/7/15.
6+// Copyright © 2015 Gunay Mert Karadogan. All rights reserved.
7+//
8+
9+import UIKit
10+
11+@UIApplicationMain
12+class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+ var window: UIWindow?
15+
16+
17+ func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18+ // Override point for customization after application launch.
19+ return true
20+ }
21+
22+ func applicationWillResignActive(application: UIApplication) {
23+ // 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.
25+ }
26+
27+ func applicationDidEnterBackground(application: UIApplication) {
28+ // 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.
29+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30+ }
31+
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.
34+ }
35+
36+ func applicationDidBecomeActive(application: UIApplication) {
37+ // 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.
38+ }
39+
40+ func applicationWillTerminate(application: UIApplication) {
41+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42+ }
43+
44+
45+}
46+
GMStepper/GMStepper/Assets.xcassets/AppIcon.appiconset/Contents.jsonnew file+38
@@ -0,0 +1,38 @@
1+{
2+ "images" : [
3+ {
4+ "idiom" : "iphone",
5+ "size" : "29x29",
6+ "scale" : "2x"
7+ },
8+ {
9+ "idiom" : "iphone",
10+ "size" : "29x29",
11+ "scale" : "3x"
12+ },
13+ {
14+ "idiom" : "iphone",
15+ "size" : "40x40",
16+ "scale" : "2x"
17+ },
18+ {
19+ "idiom" : "iphone",
20+ "size" : "40x40",
21+ "scale" : "3x"
22+ },
23+ {
24+ "idiom" : "iphone",
25+ "size" : "60x60",
26+ "scale" : "2x"
27+ },
28+ {
29+ "idiom" : "iphone",
30+ "size" : "60x60",
31+ "scale" : "3x"
32+ }
33+ ],
34+ "info" : {
35+ "version" : 1,
36+ "author" : "xcode"
37+ }
38+}
GMStepper/GMStepper/Assets.xcassets/Contents.jsonnew file+6
@@ -0,0 +1,6 @@
1+{
2+ "info" : {
3+ "version" : 1,
4+ "author" : "xcode"
5+ }
6+}
GMStepper/GMStepper/Base.lproj/LaunchScreen.storyboardnew file+49
@@ -0,0 +1,49 @@
1+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8076" systemVersion="14D121" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
3+ <dependencies>
4+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8063"/>
5+ <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
6+ </dependencies>
7+ <scenes>
8+ <!--View Controller-->
9+ <scene sceneID="EHf-IW-A2E">
10+ <objects>
11+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
12+ <layoutGuides>
13+ <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
14+ <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
15+ </layoutGuides>
16+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17+ <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
18+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+ <subviews>
20+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright © 2015 Gunay Mert Karadogan. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
21+ <rect key="frame" x="20" y="559" width="560" height="21"/>
22+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
23+ <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
24+ <nil key="highlightedColor"/>
25+ </label>
26+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="GMStepper" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
27+ <rect key="frame" x="20" y="180" width="560" height="43"/>
28+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
29+ <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
30+ <nil key="highlightedColor"/>
31+ </label>
32+ </subviews>
33+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
34+ <constraints>
35+ <constraint firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
36+ <constraint firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
37+ <constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
38+ <constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
39+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
40+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" constant="20" symbolic="YES" id="x7j-FC-K8j"/>
41+ </constraints>
42+ </view>
43+ </viewController>
44+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
45+ </objects>
46+ <point key="canvasLocation" x="53" y="375"/>
47+ </scene>
48+ </scenes>
49+</document>
GMStepper/GMStepper/Base.lproj/Main.storyboardnew file+25
@@ -0,0 +1,25 @@
1+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8121.20" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
3+ <dependencies>
4+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8101.16"/>
5+ </dependencies>
6+ <scenes>
7+ <!--View Controller-->
8+ <scene sceneID="tne-QT-ifu">
9+ <objects>
10+ <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="GMStepper" customModuleProvider="target" sceneMemberID="viewController">
11+ <layoutGuides>
12+ <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
13+ <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
14+ </layoutGuides>
15+ <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
16+ <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
17+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
19+ </view>
20+ </viewController>
21+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
22+ </objects>
23+ </scene>
24+ </scenes>
25+</document>
GMStepper/GMStepper/GMStepper.swiftnew file+32
@@ -0,0 +1,32 @@
1+//
2+// GMStepper.swift
3+// GMStepper
4+//
5+// Created by Gunay Mert Karadogan on 1/7/15.
6+// Copyright © 2015 Gunay Mert Karadogan. All rights reserved.
7+//
8+
9+import UIKit
10+
11+class GMStepper: UIView {
12+ let leftButton = UIButton()
13+ let rightButton = UIButton()
14+ let label = UILabel()
15+
16+ required init(coder aDecoder: NSCoder) {
17+ super.init(coder: aDecoder)
18+
19+ let leftButtonImage = UIImage(named: "minus")
20+ let rightButtonImage = UIImage(named: "plus")
21+
22+ rightButton.setImage(rightButtonImage, forState: [.Normal])
23+ leftButton.setImage(leftButtonImage, forState: [.Normal])
24+
25+ leftButton.addTarget(self, action: "leftButtonTapped:", forControlEvents: .TouchDown)
26+ rightButton.addTarget(self, action: "rightButtonTapped:", forControlEvents: .TouchDown)
27+
28+ addSubview(leftButton)
29+ addSubview(rightButton)
30+ addSubview(label)
31+ }
32+}
GMStepper/GMStepper/Info.plistnew file+40
@@ -0,0 +1,40 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>CFBundleDevelopmentRegion</key>
6+ <string>en</string>
7+ <key>CFBundleExecutable</key>
8+ <string>$(EXECUTABLE_NAME)</string>
9+ <key>CFBundleIdentifier</key>
10+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+ <key>CFBundleInfoDictionaryVersion</key>
12+ <string>6.0</string>
13+ <key>CFBundleName</key>
14+ <string>$(PRODUCT_NAME)</string>
15+ <key>CFBundlePackageType</key>
16+ <string>APPL</string>
17+ <key>CFBundleShortVersionString</key>
18+ <string>1.0</string>
19+ <key>CFBundleSignature</key>
20+ <string>????</string>
21+ <key>CFBundleVersion</key>
22+ <string>1</string>
23+ <key>LSRequiresIPhoneOS</key>
24+ <true/>
25+ <key>UILaunchStoryboardName</key>
26+ <string>LaunchScreen</string>
27+ <key>UIMainStoryboardFile</key>
28+ <string>Main</string>
29+ <key>UIRequiredDeviceCapabilities</key>
30+ <array>
31+ <string>armv7</string>
32+ </array>
33+ <key>UISupportedInterfaceOrientations</key>
34+ <array>
35+ <string>UIInterfaceOrientationPortrait</string>
36+ <string>UIInterfaceOrientationLandscapeLeft</string>
37+ <string>UIInterfaceOrientationLandscapeRight</string>
38+ </array>
39+</dict>
40+</plist>
GMStepper/GMStepper/ViewController.swiftnew file+25
@@ -0,0 +1,25 @@
1+//
2+// ViewController.swift
3+// GMStepper
4+//
5+// Created by Gunay Mert Karadogan on 1/7/15.
6+// Copyright © 2015 Gunay Mert Karadogan. All rights reserved.
7+//
8+
9+import UIKit
10+
11+class ViewController: UIViewController {
12+
13+ override func viewDidLoad() {
14+ super.viewDidLoad()
15+ // Do any additional setup after loading the view, typically from a nib.
16+ }
17+
18+ override func didReceiveMemoryWarning() {
19+ super.didReceiveMemoryWarning()
20+ // Dispose of any resources that can be recreated.
21+ }
22+
23+
24+}
25+
GMStepper/GMStepperTests/GMStepperTests.swiftnew file+35
@@ -0,0 +1,35 @@
1+//
2+// GMStepperTests.swift
3+// GMStepperTests
4+//
5+// Created by Gunay Mert Karadogan on 1/7/15.
6+// Copyright © 2015 Gunay Mert Karadogan. All rights reserved.
7+//
8+
9+import XCTest
10+
11+class GMStepperTests: XCTestCase {
12+
13+ override func setUp() {
14+ super.setUp()
15+ // Put setup code here. This method is called before the invocation of each test method in the class.
16+ }
17+
18+ override func tearDown() {
19+ // Put teardown code here. This method is called after the invocation of each test method in the class.
20+ super.tearDown()
21+ }
22+
23+ func testExample() {
24+ // This is an example of a functional test case.
25+ // Use XCTAssert and related functions to verify your tests produce the correct results.
26+ }
27+
28+ func testPerformanceExample() {
29+ // This is an example of a performance test case.
30+ self.measureBlock() {
31+ // Put the code you want to measure the time of here.
32+ }
33+ }
34+
35+}
GMStepper/GMStepperTests/Info.plistnew file+24
@@ -0,0 +1,24 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>CFBundleDevelopmentRegion</key>
6+ <string>en</string>
7+ <key>CFBundleExecutable</key>
8+ <string>$(EXECUTABLE_NAME)</string>
9+ <key>CFBundleIdentifier</key>
10+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+ <key>CFBundleInfoDictionaryVersion</key>
12+ <string>6.0</string>
13+ <key>CFBundleName</key>
14+ <string>$(PRODUCT_NAME)</string>
15+ <key>CFBundlePackageType</key>
16+ <string>BNDL</string>
17+ <key>CFBundleShortVersionString</key>
18+ <string>1.0</string>
19+ <key>CFBundleSignature</key>
20+ <string>????</string>
21+ <key>CFBundleVersion</key>
22+ <string>1</string>
23+</dict>
24+</plist>
GMStepper/GMStepperUITests/GMStepperUITests.swiftnew file+35
@@ -0,0 +1,35 @@
1+//
2+// GMStepperUITests.swift
3+// GMStepperUITests
4+//
5+// Created by Gunay Mert Karadogan on 1/7/15.
6+// Copyright © 2015 Gunay Mert Karadogan. All rights reserved.
7+//
8+
9+import Foundation
10+import XCTest
11+
12+class GMStepperUITests: XCTestCase {
13+
14+ override func setUp() {
15+ super.setUp()
16+
17+ // Put setup code here. This method is called before the invocation of each test method in the class.
18+
19+ // In UI tests it is usually best to stop immediately when a failure occurs.
20+ continueAfterFailure = false
21+ // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
22+ XCUIApplication().launch()
23+ }
24+
25+ override func tearDown() {
26+ // Put teardown code here. This method is called after the invocation of each test method in the class.
27+ super.tearDown()
28+ }
29+
30+ func testExample() {
31+ // Use recording to get started writing UI tests.
32+ // Use XCTAssert and related functions to verify your tests produce the correct results.
33+ }
34+
35+}
GMStepper/GMStepperUITests/Info.plistnew file+24
@@ -0,0 +1,24 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>CFBundleDevelopmentRegion</key>
6+ <string>en</string>
7+ <key>CFBundleExecutable</key>
8+ <string>$(EXECUTABLE_NAME)</string>
9+ <key>CFBundleIdentifier</key>
10+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+ <key>CFBundleInfoDictionaryVersion</key>
12+ <string>6.0</string>
13+ <key>CFBundleName</key>
14+ <string>$(PRODUCT_NAME)</string>
15+ <key>CFBundlePackageType</key>
16+ <string>BNDL</string>
17+ <key>CFBundleShortVersionString</key>
18+ <string>1.0</string>
19+ <key>CFBundleSignature</key>
20+ <string>????</string>
21+ <key>CFBundleVersion</key>
22+ <string>1</string>
23+</dict>
24+</plist>