Skip to content

Commit 4fa43bf

Browse files
committed
Merged in add-verification-code-view (pull request #1)
Added verification code view and fixed issue #1
2 parents 847f49d + 732324f commit 4fa43bf

25 files changed

Lines changed: 838 additions & 382 deletions

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 14 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# Xcode
2-
#
3-
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
1+
# OS X
2+
.DS_Store
43

5-
## Build generated
4+
# Xcode
65
build/
7-
DerivedData/
8-
9-
## Various settings
106
*.pbxuser
117
!default.pbxuser
128
*.mode1v3
@@ -16,51 +12,22 @@ DerivedData/
1612
*.perspectivev3
1713
!default.perspectivev3
1814
xcuserdata/
19-
20-
## Other
15+
*.xccheckout
16+
profile
2117
*.moved-aside
22-
*.xcuserstate
23-
.DS_Store
24-
25-
## Obj-C/Swift specific
18+
DerivedData
2619
*.hmap
2720
*.ipa
28-
*.dSYM.zip
29-
*.dSYM
3021

31-
## Playgrounds
32-
timeline.xctimeline
33-
playground.xcworkspace
22+
# Bundler
23+
.bundle
3424

35-
# Swift Package Manager
36-
#
37-
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38-
# Packages/
39-
.build/
40-
41-
# CocoaPods
42-
#
25+
Carthage
4326
# We recommend against adding the Pods directory to your .gitignore. However
4427
# you should judge for yourself, the pros and cons are mentioned at:
45-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
46-
#
47-
# Pods/
48-
49-
# Carthage
28+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
29+
#
30+
# Note: if you ignore the Pods directory, make sure to uncomment
31+
# `pod install` in .travis.yml
5032
#
51-
# Add this line if you want to avoid checking in source code from Carthage dependencies.
52-
# Carthage/Checkouts
53-
54-
Carthage/Build
55-
56-
# fastlane
57-
#
58-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
59-
# screenshots whenever they are needed.
60-
# For more information about the recommended setup visit:
61-
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
62-
63-
fastlane/report.xml
64-
fastlane/Preview.html
65-
fastlane/screenshots
66-
fastlane/test_output
33+
# Pods/

Example/KWVerificationCodeView.xcodeproj/project.pbxproj

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
2CA88CD58398C2B419E9B36C /* Pods_KWVerificationCodeView_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C68BD3F967305D340EA20FFD /* Pods_KWVerificationCodeView_Tests.framework */; };
1111
2DB200677C25A654990BA580 /* Pods_KWVerificationCodeView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29FC60609011D27ACC17DB2A /* Pods_KWVerificationCodeView_Example.framework */; };
1212
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
13-
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
13+
607FACD81AFB9204008FA782 /* VerificationCodeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* VerificationCodeViewController.swift */; };
1414
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; };
1515
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; };
1616
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
@@ -33,7 +33,7 @@
3333
607FACD01AFB9204008FA782 /* KWVerificationCodeView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KWVerificationCodeView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
3434
607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3535
607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
36-
607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
36+
607FACD71AFB9204008FA782 /* VerificationCodeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VerificationCodeViewController.swift; sourceTree = "<group>"; };
3737
607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3838
607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
3939
607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
@@ -84,7 +84,7 @@
8484
isa = PBXGroup;
8585
children = (
8686
607FACF51AFB993E008FA782 /* Podspec Metadata */,
87-
607FACD21AFB9204008FA782 /* Example for KWVerificationCodeView */,
87+
607FACD21AFB9204008FA782 /* Example */,
8888
607FACE81AFB9204008FA782 /* Tests */,
8989
607FACD11AFB9204008FA782 /* Products */,
9090
5BDB25E32F432AA3094DB5BE /* Pods */,
@@ -101,17 +101,17 @@
101101
name = Products;
102102
sourceTree = "<group>";
103103
};
104-
607FACD21AFB9204008FA782 /* Example for KWVerificationCodeView */ = {
104+
607FACD21AFB9204008FA782 /* Example */ = {
105105
isa = PBXGroup;
106106
children = (
107107
607FACD51AFB9204008FA782 /* AppDelegate.swift */,
108-
607FACD71AFB9204008FA782 /* ViewController.swift */,
108+
607FACD71AFB9204008FA782 /* VerificationCodeViewController.swift */,
109109
607FACD91AFB9204008FA782 /* Main.storyboard */,
110110
607FACDC1AFB9204008FA782 /* Images.xcassets */,
111111
607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
112112
607FACD31AFB9204008FA782 /* Supporting Files */,
113113
);
114-
name = "Example for KWVerificationCodeView";
114+
name = Example;
115115
path = KWVerificationCodeView;
116116
sourceTree = "<group>";
117117
};
@@ -210,7 +210,7 @@
210210
isa = PBXProject;
211211
attributes = {
212212
LastSwiftUpdateCheck = 0720;
213-
LastUpgradeCheck = 0720;
213+
LastUpgradeCheck = 0820;
214214
ORGANIZATIONNAME = CocoaPods;
215215
TargetAttributes = {
216216
607FACCF1AFB9204008FA782 = {
@@ -361,7 +361,7 @@
361361
isa = PBXSourcesBuildPhase;
362362
buildActionMask = 2147483647;
363363
files = (
364-
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
364+
607FACD81AFB9204008FA782 /* VerificationCodeViewController.swift in Sources */,
365365
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
366366
);
367367
runOnlyForDeploymentPostprocessing = 0;
@@ -417,8 +417,10 @@
417417
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
418418
CLANG_WARN_EMPTY_BODY = YES;
419419
CLANG_WARN_ENUM_CONVERSION = YES;
420+
CLANG_WARN_INFINITE_RECURSION = YES;
420421
CLANG_WARN_INT_CONVERSION = YES;
421422
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
423+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
422424
CLANG_WARN_UNREACHABLE_CODE = YES;
423425
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
424426
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -441,7 +443,7 @@
441443
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
442444
GCC_WARN_UNUSED_FUNCTION = YES;
443445
GCC_WARN_UNUSED_VARIABLE = YES;
444-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
446+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
445447
MTL_ENABLE_DEBUG_INFO = YES;
446448
ONLY_ACTIVE_ARCH = YES;
447449
SDKROOT = iphoneos;
@@ -462,8 +464,10 @@
462464
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
463465
CLANG_WARN_EMPTY_BODY = YES;
464466
CLANG_WARN_ENUM_CONVERSION = YES;
467+
CLANG_WARN_INFINITE_RECURSION = YES;
465468
CLANG_WARN_INT_CONVERSION = YES;
466469
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
470+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
467471
CLANG_WARN_UNREACHABLE_CODE = YES;
468472
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
469473
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -479,9 +483,10 @@
479483
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
480484
GCC_WARN_UNUSED_FUNCTION = YES;
481485
GCC_WARN_UNUSED_VARIABLE = YES;
482-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
486+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
483487
MTL_ENABLE_DEBUG_INFO = NO;
484488
SDKROOT = iphoneos;
489+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
485490
VALIDATE_PRODUCT = YES;
486491
};
487492
name = Release;
@@ -490,38 +495,44 @@
490495
isa = XCBuildConfiguration;
491496
baseConfigurationReference = D51BF4885572F8FECD1E4AF7 /* Pods-KWVerificationCodeView_Example.debug.xcconfig */;
492497
buildSettings = {
498+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
493499
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
500+
DEVELOPMENT_TEAM = "";
494501
INFOPLIST_FILE = KWVerificationCodeView/Info.plist;
502+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
495503
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
496504
MODULE_NAME = ExampleApp;
497-
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
505+
PRODUCT_BUNDLE_IDENTIFIER = "com.keepworks.KWVerificationCodeView-Example";
498506
PRODUCT_NAME = "$(TARGET_NAME)";
499507
SWIFT_VERSION = 3.0;
508+
TARGETED_DEVICE_FAMILY = "1,2";
500509
};
501510
name = Debug;
502511
};
503512
607FACF11AFB9204008FA782 /* Release */ = {
504513
isa = XCBuildConfiguration;
505514
baseConfigurationReference = 7DA49E735ED3B0C245F0B8C7 /* Pods-KWVerificationCodeView_Example.release.xcconfig */;
506515
buildSettings = {
516+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
507517
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
518+
DEVELOPMENT_TEAM = "";
508519
INFOPLIST_FILE = KWVerificationCodeView/Info.plist;
520+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
509521
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
510522
MODULE_NAME = ExampleApp;
511-
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
523+
PRODUCT_BUNDLE_IDENTIFIER = "com.keepworks.KWVerificationCodeView-Example";
512524
PRODUCT_NAME = "$(TARGET_NAME)";
513525
SWIFT_VERSION = 3.0;
526+
TARGETED_DEVICE_FAMILY = "1,2";
514527
};
515528
name = Release;
516529
};
517530
607FACF31AFB9204008FA782 /* Debug */ = {
518531
isa = XCBuildConfiguration;
519532
baseConfigurationReference = 423112B5C6F551741EC3F015 /* Pods-KWVerificationCodeView_Tests.debug.xcconfig */;
520533
buildSettings = {
521-
FRAMEWORK_SEARCH_PATHS = (
522-
"$(SDKROOT)/Developer/Library/Frameworks",
523-
"$(inherited)",
524-
);
534+
DEVELOPMENT_TEAM = "";
535+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
525536
GCC_PREPROCESSOR_DEFINITIONS = (
526537
"DEBUG=1",
527538
"$(inherited)",
@@ -538,10 +549,8 @@
538549
isa = XCBuildConfiguration;
539550
baseConfigurationReference = 8F723ADDC751FC9CC3C9BE34 /* Pods-KWVerificationCodeView_Tests.release.xcconfig */;
540551
buildSettings = {
541-
FRAMEWORK_SEARCH_PATHS = (
542-
"$(SDKROOT)/Developer/Library/Frameworks",
543-
"$(inherited)",
544-
);
552+
DEVELOPMENT_TEAM = "";
553+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
545554
INFOPLIST_FILE = Tests/Info.plist;
546555
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
547556
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";

Example/KWVerificationCodeView.xcodeproj/xcshareddata/xcschemes/KWVerificationCodeView-Example.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0720"
3+
LastUpgradeVersion = "0820"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/KWVerificationCodeView/AppDelegate.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// AppDelegate.swift
33
// KWVerificationCodeView
44
//
5-
// Created by Athul Sai on 01/10/2017.
6-
// Copyright (c) 2017 Athul Sai. All rights reserved.
5+
// Created by KeepWorks on 01/10/2017.
6+
// Copyright (c) 2017 KeepWorks Technologies Pvt Ltd. All rights reserved.
77
//
88

99
import UIKit
@@ -15,30 +15,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1515

1616

1717
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18-
// Override point for customization after application launch.
1918
return true
2019
}
2120

2221
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.
2522
}
2623

2724
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.
3025
}
3126

3227
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.
3428
}
3529

3630
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.
3831
}
3932

4033
func applicationWillTerminate(_ application: UIApplication) {
41-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
4234
}
4335

4436

Example/KWVerificationCodeView/Base.lproj/LaunchScreen.xib

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16C68" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
3+
<device id="retina4_7" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
59
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
10+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
611
</dependencies>
712
<objects>
813
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
@@ -11,26 +16,17 @@
1116
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
1217
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1318
<subviews>
14-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 CocoaPods. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
15-
<rect key="frame" x="20" y="439" width="441" height="21"/>
16-
<fontDescription key="fontDescription" type="system" pointSize="17"/>
17-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
18-
<nil key="highlightedColor"/>
19-
</label>
20-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="KWVerificationCodeView" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
21-
<rect key="frame" x="20" y="140" width="441" height="43"/>
19+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="KWVerificationCodeView" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX" userLabel="titleLabel">
20+
<rect key="frame" x="20" y="138.5" width="441" height="43"/>
2221
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
2322
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
2423
<nil key="highlightedColor"/>
2524
</label>
2625
</subviews>
27-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
26+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2827
<constraints>
29-
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
28+
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" id="5cJ-9S-tgC"/>
3029
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
31-
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
32-
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
33-
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
3430
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
3531
</constraints>
3632
<nil key="simulatedStatusBarMetrics"/>

0 commit comments

Comments
 (0)