├── .gitattributes ├── .gitignore ├── .travis.yml ├── Example ├── KBNumberPad.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── KBNumberPad-Example.xcscheme ├── KBNumberPad.xcworkspace │ └── contents.xcworkspacedata ├── KBNumberPad │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Pods │ ├── Local Podspecs │ │ └── KBNumberPad.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── KBNumberPad │ │ ├── Info.plist │ │ ├── KBNumberPad-dummy.m │ │ ├── KBNumberPad-prefix.pch │ │ ├── KBNumberPad-umbrella.h │ │ ├── KBNumberPad.modulemap │ │ └── KBNumberPad.xcconfig │ │ ├── Pods-KBNumberPad_Example │ │ ├── Info.plist │ │ ├── Pods-KBNumberPad_Example-acknowledgements.markdown │ │ ├── Pods-KBNumberPad_Example-acknowledgements.plist │ │ ├── Pods-KBNumberPad_Example-dummy.m │ │ ├── Pods-KBNumberPad_Example-frameworks.sh │ │ ├── Pods-KBNumberPad_Example-resources.sh │ │ ├── Pods-KBNumberPad_Example-umbrella.h │ │ ├── Pods-KBNumberPad_Example.debug.xcconfig │ │ ├── Pods-KBNumberPad_Example.modulemap │ │ └── Pods-KBNumberPad_Example.release.xcconfig │ │ └── Pods-KBNumberPad_Tests │ │ ├── Info.plist │ │ ├── Pods-KBNumberPad_Tests-acknowledgements.markdown │ │ ├── Pods-KBNumberPad_Tests-acknowledgements.plist │ │ ├── Pods-KBNumberPad_Tests-dummy.m │ │ ├── Pods-KBNumberPad_Tests-frameworks.sh │ │ ├── Pods-KBNumberPad_Tests-resources.sh │ │ ├── Pods-KBNumberPad_Tests-umbrella.h │ │ ├── Pods-KBNumberPad_Tests.debug.xcconfig │ │ ├── Pods-KBNumberPad_Tests.modulemap │ │ └── Pods-KBNumberPad_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── KBNumberPad.podspec ├── KBNumberPad ├── Assets │ └── Assets.xcassets │ │ ├── ClearSymbolFilledIcon.imageset │ │ ├── ClearSymbolFilledIcon@2x.png │ │ ├── ClearSymbolFilledIcon@3x.png │ │ └── Contents.json │ │ ├── ClearSymbolIcon.imageset │ │ ├── ClearSymbolIcon@2x.png │ │ ├── ClearSymbolIcon@3x.png │ │ └── Contents.json │ │ └── Contents.json └── Classes │ ├── KBNumberPad.swift │ └── KBNumberPad.xib ├── LICENSE ├── README.md └── _Pods.xcodeproj /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh linguist-language=Swift 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # CocoaPods 26 | # 27 | # We recommend against adding the Pods directory to your .gitignore. However 28 | # you should judge for yourself, the pros and cons are mentioned at: 29 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 30 | # 31 | # Note: if you ignore the Pods directory, make sure to uncomment 32 | # `pod install` in .travis.yml 33 | # 34 | # Pods/ 35 | Example/Podfile.lock 36 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode8 6 | language: objective-c 7 | cache: cocoapods 8 | podfile: Example/Podfile 9 | 10 | before_install: 11 | - gem install cocoapods # Since Travis is not always on latest version 12 | - pod install --project-directory=Example 13 | - pod repo update master 14 | 15 | script: 16 | - set -o pipefail && xcodebuild test -workspace Example/KBNumberPad.xcworkspace -scheme KBNumberPad-Example -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=10.0,name=iPhone 6' build test | xcpretty -c --test --color 17 | - pod lib lint 18 | -------------------------------------------------------------------------------- /Example/KBNumberPad.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | A465AA9C1D14448815616419 /* Pods_KBNumberPad_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B14FF0F17828910E7E30FCBF /* Pods_KBNumberPad_Example.framework */; }; 17 | B215575C037513CD5674A9FF /* Pods_KBNumberPad_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 48432B07C057DC36B7B55D88 /* Pods_KBNumberPad_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = KBNumberPad; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 19068A3A5AEBE535ECA29BFE /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 32 | 48432B07C057DC36B7B55D88 /* Pods_KBNumberPad_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KBNumberPad_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 607FACD01AFB9204008FA782 /* KBNumberPad_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KBNumberPad_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 37 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 607FACE51AFB9204008FA782 /* KBNumberPad_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KBNumberPad_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 43 | 879F46A32E9B86A7C1494656 /* Pods-KBNumberPad_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KBNumberPad_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example.release.xcconfig"; sourceTree = ""; }; 44 | 93CAE31F165B0DDC95FDA1DE /* Pods-KBNumberPad_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KBNumberPad_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests.debug.xcconfig"; sourceTree = ""; }; 45 | 9ACB428AE04F3985BF0E2BC1 /* Pods-KBNumberPad_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KBNumberPad_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests.release.xcconfig"; sourceTree = ""; }; 46 | B14FF0F17828910E7E30FCBF /* Pods_KBNumberPad_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KBNumberPad_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | BCED2AAD86B581DE196C47DA /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 48 | BDF2ACBE0D710C6D0CDBCFFA /* KBNumberPad.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = KBNumberPad.podspec; path = ../KBNumberPad.podspec; sourceTree = ""; }; 49 | DB4EABA9250CD3F7C2A0D819 /* Pods-KBNumberPad_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KBNumberPad_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example.debug.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | A465AA9C1D14448815616419 /* Pods_KBNumberPad_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | B215575C037513CD5674A9FF /* Pods_KBNumberPad_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 607FACC71AFB9204008FA782 = { 73 | isa = PBXGroup; 74 | children = ( 75 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 76 | 607FACD21AFB9204008FA782 /* Example for KBNumberPad */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | 7DA301B98C7E85953A4C1D0B /* Pods */, 80 | 618E153AC57E02F0209B1CA8 /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* KBNumberPad_Example.app */, 88 | 607FACE51AFB9204008FA782 /* KBNumberPad_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for KBNumberPad */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 97 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 98 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 99 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 100 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for KBNumberPad"; 104 | path = KBNumberPad; 105 | sourceTree = ""; 106 | }; 107 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD41AFB9204008FA782 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 607FACE81AFB9204008FA782 /* Tests */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 119 | 607FACE91AFB9204008FA782 /* Supporting Files */, 120 | ); 121 | path = Tests; 122 | sourceTree = ""; 123 | }; 124 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEA1AFB9204008FA782 /* Info.plist */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | BDF2ACBE0D710C6D0CDBCFFA /* KBNumberPad.podspec */, 136 | BCED2AAD86B581DE196C47DA /* README.md */, 137 | 19068A3A5AEBE535ECA29BFE /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | 618E153AC57E02F0209B1CA8 /* Frameworks */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | B14FF0F17828910E7E30FCBF /* Pods_KBNumberPad_Example.framework */, 146 | 48432B07C057DC36B7B55D88 /* Pods_KBNumberPad_Tests.framework */, 147 | ); 148 | name = Frameworks; 149 | sourceTree = ""; 150 | }; 151 | 7DA301B98C7E85953A4C1D0B /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | DB4EABA9250CD3F7C2A0D819 /* Pods-KBNumberPad_Example.debug.xcconfig */, 155 | 879F46A32E9B86A7C1494656 /* Pods-KBNumberPad_Example.release.xcconfig */, 156 | 93CAE31F165B0DDC95FDA1DE /* Pods-KBNumberPad_Tests.debug.xcconfig */, 157 | 9ACB428AE04F3985BF0E2BC1 /* Pods-KBNumberPad_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* KBNumberPad_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KBNumberPad_Example" */; 168 | buildPhases = ( 169 | 7E8822B050365A775ACE533D /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | E9286D92A9C40E159172732B /* [CP] Embed Pods Frameworks */, 174 | 67C6A5056D225DCF845C96FE /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = KBNumberPad_Example; 181 | productName = KBNumberPad; 182 | productReference = 607FACD01AFB9204008FA782 /* KBNumberPad_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* KBNumberPad_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KBNumberPad_Tests" */; 188 | buildPhases = ( 189 | FF4AF323578EE94ADA313E76 /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | F34CDBEBC19B26AD1C88F72B /* [CP] Embed Pods Frameworks */, 194 | 4025D302C12447743FB97CD2 /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = KBNumberPad_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* KBNumberPad_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0720; 213 | LastUpgradeCheck = 0820; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0820; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 0820; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KBNumberPad" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* KBNumberPad_Example */, 241 | 607FACE41AFB9204008FA782 /* KBNumberPad_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 4025D302C12447743FB97CD2 /* [CP] Copy Pods Resources */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | ); 274 | name = "[CP] Copy Pods Resources"; 275 | outputPaths = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-resources.sh\"\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | 67C6A5056D225DCF845C96FE /* [CP] Copy Pods Resources */ = { 283 | isa = PBXShellScriptBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | inputPaths = ( 288 | ); 289 | name = "[CP] Copy Pods Resources"; 290 | outputPaths = ( 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | shellPath = /bin/sh; 294 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-resources.sh\"\n"; 295 | showEnvVarsInLog = 0; 296 | }; 297 | 7E8822B050365A775ACE533D /* [CP] Check Pods Manifest.lock */ = { 298 | isa = PBXShellScriptBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | ); 302 | inputPaths = ( 303 | ); 304 | name = "[CP] Check Pods Manifest.lock"; 305 | outputPaths = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | shellPath = /bin/sh; 309 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 310 | showEnvVarsInLog = 0; 311 | }; 312 | E9286D92A9C40E159172732B /* [CP] Embed Pods Frameworks */ = { 313 | isa = PBXShellScriptBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | ); 317 | inputPaths = ( 318 | ); 319 | name = "[CP] Embed Pods Frameworks"; 320 | outputPaths = ( 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-frameworks.sh\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | F34CDBEBC19B26AD1C88F72B /* [CP] Embed Pods Frameworks */ = { 328 | isa = PBXShellScriptBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | inputPaths = ( 333 | ); 334 | name = "[CP] Embed Pods Frameworks"; 335 | outputPaths = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-frameworks.sh\"\n"; 340 | showEnvVarsInLog = 0; 341 | }; 342 | FF4AF323578EE94ADA313E76 /* [CP] Check Pods Manifest.lock */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputPaths = ( 348 | ); 349 | name = "[CP] Check Pods Manifest.lock"; 350 | outputPaths = ( 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | shellPath = /bin/sh; 354 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 355 | showEnvVarsInLog = 0; 356 | }; 357 | /* End PBXShellScriptBuildPhase section */ 358 | 359 | /* Begin PBXSourcesBuildPhase section */ 360 | 607FACCC1AFB9204008FA782 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 365 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | 607FACE11AFB9204008FA782 /* Sources */ = { 370 | isa = PBXSourcesBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | /* End PBXSourcesBuildPhase section */ 378 | 379 | /* Begin PBXTargetDependency section */ 380 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 381 | isa = PBXTargetDependency; 382 | target = 607FACCF1AFB9204008FA782 /* KBNumberPad_Example */; 383 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 384 | }; 385 | /* End PBXTargetDependency section */ 386 | 387 | /* Begin PBXVariantGroup section */ 388 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 389 | isa = PBXVariantGroup; 390 | children = ( 391 | 607FACDA1AFB9204008FA782 /* Base */, 392 | ); 393 | name = Main.storyboard; 394 | sourceTree = ""; 395 | }; 396 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 397 | isa = PBXVariantGroup; 398 | children = ( 399 | 607FACDF1AFB9204008FA782 /* Base */, 400 | ); 401 | name = LaunchScreen.xib; 402 | sourceTree = ""; 403 | }; 404 | /* End PBXVariantGroup section */ 405 | 406 | /* Begin XCBuildConfiguration section */ 407 | 607FACED1AFB9204008FA782 /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ALWAYS_SEARCH_USER_PATHS = NO; 411 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 412 | CLANG_CXX_LIBRARY = "libc++"; 413 | CLANG_ENABLE_MODULES = YES; 414 | CLANG_ENABLE_OBJC_ARC = YES; 415 | CLANG_WARN_BOOL_CONVERSION = YES; 416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 418 | CLANG_WARN_EMPTY_BODY = YES; 419 | CLANG_WARN_ENUM_CONVERSION = YES; 420 | CLANG_WARN_INFINITE_RECURSION = YES; 421 | CLANG_WARN_INT_CONVERSION = YES; 422 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 423 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 424 | CLANG_WARN_UNREACHABLE_CODE = YES; 425 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 426 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 427 | COPY_PHASE_STRIP = NO; 428 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 429 | ENABLE_STRICT_OBJC_MSGSEND = YES; 430 | ENABLE_TESTABILITY = YES; 431 | GCC_C_LANGUAGE_STANDARD = gnu99; 432 | GCC_DYNAMIC_NO_PIC = NO; 433 | GCC_NO_COMMON_BLOCKS = YES; 434 | GCC_OPTIMIZATION_LEVEL = 0; 435 | GCC_PREPROCESSOR_DEFINITIONS = ( 436 | "DEBUG=1", 437 | "$(inherited)", 438 | ); 439 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 442 | GCC_WARN_UNDECLARED_SELECTOR = YES; 443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 444 | GCC_WARN_UNUSED_FUNCTION = YES; 445 | GCC_WARN_UNUSED_VARIABLE = YES; 446 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 447 | MTL_ENABLE_DEBUG_INFO = YES; 448 | ONLY_ACTIVE_ARCH = YES; 449 | SDKROOT = iphoneos; 450 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 451 | }; 452 | name = Debug; 453 | }; 454 | 607FACEE1AFB9204008FA782 /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | buildSettings = { 457 | ALWAYS_SEARCH_USER_PATHS = NO; 458 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 459 | CLANG_CXX_LIBRARY = "libc++"; 460 | CLANG_ENABLE_MODULES = YES; 461 | CLANG_ENABLE_OBJC_ARC = YES; 462 | CLANG_WARN_BOOL_CONVERSION = YES; 463 | CLANG_WARN_CONSTANT_CONVERSION = YES; 464 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 465 | CLANG_WARN_EMPTY_BODY = YES; 466 | CLANG_WARN_ENUM_CONVERSION = YES; 467 | CLANG_WARN_INFINITE_RECURSION = YES; 468 | CLANG_WARN_INT_CONVERSION = YES; 469 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 470 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 471 | CLANG_WARN_UNREACHABLE_CODE = YES; 472 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 473 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 474 | COPY_PHASE_STRIP = NO; 475 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 476 | ENABLE_NS_ASSERTIONS = NO; 477 | ENABLE_STRICT_OBJC_MSGSEND = YES; 478 | GCC_C_LANGUAGE_STANDARD = gnu99; 479 | GCC_NO_COMMON_BLOCKS = YES; 480 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 481 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 482 | GCC_WARN_UNDECLARED_SELECTOR = YES; 483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 484 | GCC_WARN_UNUSED_FUNCTION = YES; 485 | GCC_WARN_UNUSED_VARIABLE = YES; 486 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 487 | MTL_ENABLE_DEBUG_INFO = NO; 488 | SDKROOT = iphoneos; 489 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 490 | VALIDATE_PRODUCT = YES; 491 | }; 492 | name = Release; 493 | }; 494 | 607FACF01AFB9204008FA782 /* Debug */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = DB4EABA9250CD3F7C2A0D819 /* Pods-KBNumberPad_Example.debug.xcconfig */; 497 | buildSettings = { 498 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 499 | INFOPLIST_FILE = KBNumberPad/Info.plist; 500 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 501 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 502 | MODULE_NAME = ExampleApp; 503 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 504 | PRODUCT_NAME = "$(TARGET_NAME)"; 505 | SWIFT_VERSION = 3.0; 506 | }; 507 | name = Debug; 508 | }; 509 | 607FACF11AFB9204008FA782 /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 879F46A32E9B86A7C1494656 /* Pods-KBNumberPad_Example.release.xcconfig */; 512 | buildSettings = { 513 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 514 | INFOPLIST_FILE = KBNumberPad/Info.plist; 515 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 517 | MODULE_NAME = ExampleApp; 518 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_VERSION = 3.0; 521 | }; 522 | name = Release; 523 | }; 524 | 607FACF31AFB9204008FA782 /* Debug */ = { 525 | isa = XCBuildConfiguration; 526 | baseConfigurationReference = 93CAE31F165B0DDC95FDA1DE /* Pods-KBNumberPad_Tests.debug.xcconfig */; 527 | buildSettings = { 528 | FRAMEWORK_SEARCH_PATHS = ( 529 | "$(SDKROOT)/Developer/Library/Frameworks", 530 | "$(inherited)", 531 | ); 532 | GCC_PREPROCESSOR_DEFINITIONS = ( 533 | "DEBUG=1", 534 | "$(inherited)", 535 | ); 536 | INFOPLIST_FILE = Tests/Info.plist; 537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 538 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 539 | PRODUCT_NAME = "$(TARGET_NAME)"; 540 | SWIFT_VERSION = 3.0; 541 | }; 542 | name = Debug; 543 | }; 544 | 607FACF41AFB9204008FA782 /* Release */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 9ACB428AE04F3985BF0E2BC1 /* Pods-KBNumberPad_Tests.release.xcconfig */; 547 | buildSettings = { 548 | FRAMEWORK_SEARCH_PATHS = ( 549 | "$(SDKROOT)/Developer/Library/Frameworks", 550 | "$(inherited)", 551 | ); 552 | INFOPLIST_FILE = Tests/Info.plist; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 554 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 555 | PRODUCT_NAME = "$(TARGET_NAME)"; 556 | SWIFT_VERSION = 3.0; 557 | }; 558 | name = Release; 559 | }; 560 | /* End XCBuildConfiguration section */ 561 | 562 | /* Begin XCConfigurationList section */ 563 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KBNumberPad" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | 607FACED1AFB9204008FA782 /* Debug */, 567 | 607FACEE1AFB9204008FA782 /* Release */, 568 | ); 569 | defaultConfigurationIsVisible = 0; 570 | defaultConfigurationName = Release; 571 | }; 572 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KBNumberPad_Example" */ = { 573 | isa = XCConfigurationList; 574 | buildConfigurations = ( 575 | 607FACF01AFB9204008FA782 /* Debug */, 576 | 607FACF11AFB9204008FA782 /* Release */, 577 | ); 578 | defaultConfigurationIsVisible = 0; 579 | defaultConfigurationName = Release; 580 | }; 581 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KBNumberPad_Tests" */ = { 582 | isa = XCConfigurationList; 583 | buildConfigurations = ( 584 | 607FACF31AFB9204008FA782 /* Debug */, 585 | 607FACF41AFB9204008FA782 /* Release */, 586 | ); 587 | defaultConfigurationIsVisible = 0; 588 | defaultConfigurationName = Release; 589 | }; 590 | /* End XCConfigurationList section */ 591 | }; 592 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 593 | } 594 | -------------------------------------------------------------------------------- /Example/KBNumberPad.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/KBNumberPad.xcodeproj/xcshareddata/xcschemes/KBNumberPad-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/KBNumberPad.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/KBNumberPad/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // KBNumberPad 4 | // 5 | // Created by Kirill Biakov on 01/22/2017. 6 | // Copyright (c) 2017 Kirill Biakov. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | func applicationWillResignActive(_ application: UIApplication) { 22 | // 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. 23 | // 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 | } 25 | 26 | func applicationDidEnterBackground(_ application: UIApplication) { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | func applicationWillEnterForeground(_ application: UIApplication) { 32 | // 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. 33 | } 34 | 35 | func applicationDidBecomeActive(_ application: UIApplication) { 36 | // 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. 37 | } 38 | 39 | func applicationWillTerminate(_ application: UIApplication) { 40 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Example/KBNumberPad/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/KBNumberPad/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /Example/KBNumberPad/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /Example/KBNumberPad/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/KBNumberPad/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // KBNumberPad 4 | // 5 | // Created by Kirill Biakov on 01/22/2017. 6 | // Copyright (c) 2017 Kirill Biakov. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import KBNumberPad 11 | 12 | class ViewController: UIViewController, KBNumberPadDelegate { 13 | 14 | @IBOutlet weak var textField: UITextField! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | let numberPad = ViewController.createNumberPad() 20 | numberPad.delegate = self 21 | textField.inputView = numberPad 22 | } 23 | 24 | // MARK: - KBNumberPadDelegate 25 | 26 | func onNumberClicked(numberPad: KBNumberPad, number: Int) { 27 | NSLog("Number clicked %d", number) 28 | } 29 | 30 | func onDoneClicked(numberPad: KBNumberPad) { 31 | NSLog("Done clicked") 32 | } 33 | 34 | func onClearClicked(numberPad: KBNumberPad) { 35 | NSLog("Clear clicked") 36 | } 37 | 38 | // MARK: - Private methods 39 | 40 | private static func createNumberPad() -> KBNumberPad { 41 | let numberPad = KBNumberPad() 42 | numberPad.setDelimiterColor(UIColor.lightGray) 43 | numberPad.setButtonsColor(UIColor.black) 44 | numberPad.setButtonsBackgroundColor(UIColor.white) 45 | return numberPad 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'KBNumberPad_Example' do 4 | pod 'KBNumberPad', :path => '../' 5 | 6 | target 'KBNumberPad_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/KBNumberPad.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "KBNumberPad", 3 | "version": "1.0.0", 4 | "summary": "Customizable number pad as replacement of default.", 5 | "description": "KBNumberPad is a customizable number pad as replacement of default.", 6 | "homepage": "https://github.com/kbiakov/KBNumberPad", 7 | "screenshots": [ 8 | "https://s21.postimg.org/w7aup8887/2017-05-14_20.29.02.png", 9 | "https://s16.postimg.org/6pmpy72ut/2017-05-14_20.51.04.png", 10 | "https://s3.postimg.org/mah7jtcmr/2017-05-14_20.59.17.png" 11 | ], 12 | "license": { 13 | "type": "Apache 2.0", 14 | "file": "LICENSE" 15 | }, 16 | "authors": { 17 | "Kirill Biakov": "kiakov@gmail.com" 18 | }, 19 | "source": { 20 | "git": "https://github.com/kbiakov/KBNumberPad.git", 21 | "tag": "1.0.0" 22 | }, 23 | "platforms": { 24 | "ios": "9.0" 25 | }, 26 | "source_files": "KBNumberPad/Classes/**/*", 27 | "resources": "KBNumberPad/Assets/*.xcassets", 28 | "frameworks": "UIKit" 29 | } 30 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KBNumberPad (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - KBNumberPad (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KBNumberPad: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | KBNumberPad: 85fca8e8e2cf110bfdc4c55413cc87ea660a1b68 13 | 14 | PODFILE CHECKSUM: fb5d59fb5543c58972b2aafd69f360a21f10971d 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 22876EABF3368245C4EA3C5457FF1AB6 /* KBNumberPad.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E8C17414392294C6F46774EB68089DA /* KBNumberPad.swift */; }; 11 | 29132710CA84F2172EDEF4C95636EF9B /* Pods-KBNumberPad_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 747612412FF0CF2145DC4DC24E1D183C /* Pods-KBNumberPad_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 2BA7049CABF5A54733B66F17A42DA174 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; }; 13 | 373578D67B4E8A24903EFCF4BE85B768 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; }; 14 | 5F7F35B004C439B9B55BF4B01373853A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; }; 15 | 60FB929461800F52B2C389B6F4CDDCD9 /* KBNumberPad.xib in Sources */ = {isa = PBXBuildFile; fileRef = 42010D1DBE049B75E8A53CA289A1B01B /* KBNumberPad.xib */; }; 16 | 660B0BB25B8E984D2F203DB3DA8DC52B /* KBNumberPad-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CA1D4DD14B8D4977857ECFE77BBCFFE0 /* KBNumberPad-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 868352CD883ED6BCE0B8313B50607EDC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A2C43E2A4A0A61777947D690EA62C303 /* Assets.xcassets */; }; 18 | 8881CC8597EEC5AC61BC7417A9B23757 /* Pods-KBNumberPad_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A5AA71A3EDEAA11D68AF0F4991094BAB /* Pods-KBNumberPad_Example-dummy.m */; }; 19 | A84BF5E902E3663297AC8CFB4BA816F2 /* Pods-KBNumberPad_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F37AADFB2C9BBEDF49398D9AE77E572 /* Pods-KBNumberPad_Tests-dummy.m */; }; 20 | CCBF86DF87EC6DEBED360602A79CE62C /* KBNumberPad-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DDC94873DB85A244D9A91D00C5FC028F /* KBNumberPad-dummy.m */; }; 21 | D28AB9B166AD2BE045030B2C2A2BDAB1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */; }; 22 | EE0C4DDF44F53C07DA4D94B06D4B10E6 /* Pods-KBNumberPad_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BA687D3AEDD729F36470F02C024392A6 /* Pods-KBNumberPad_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | DB1F903BBDC14A40F1047C902016CA8C /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 9C2F9892FFAD39D5BF06B6D64D1CC7EE; 31 | remoteInfo = KBNumberPad; 32 | }; 33 | /* End PBXContainerItemProxy section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | 00BFC5A87742DE9068E7DB14C41A6F9A /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 03A51E2F199F8EB91C5B7C1479066645 /* KBNumberPad.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = KBNumberPad.modulemap; sourceTree = ""; }; 38 | 065B7CFD9415881AB5E578F293EE33D4 /* Pods_KBNumberPad_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_KBNumberPad_Tests.framework; path = "Pods-KBNumberPad_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 1CD5E03E575FCFC7D12848B1CE93CFD9 /* Pods-KBNumberPad_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KBNumberPad_Example.debug.xcconfig"; sourceTree = ""; }; 40 | 1F37AADFB2C9BBEDF49398D9AE77E572 /* Pods-KBNumberPad_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KBNumberPad_Tests-dummy.m"; sourceTree = ""; }; 41 | 22FAF1BADF2777D20D20698A0B8C03BE /* Pods-KBNumberPad_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KBNumberPad_Tests.release.xcconfig"; sourceTree = ""; }; 42 | 34EBF7324B28C1D4B855C6466440706C /* Pods-KBNumberPad_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KBNumberPad_Example-frameworks.sh"; sourceTree = ""; }; 43 | 3B6A5BA2319E89D9C188DD75288225FA /* Pods-KBNumberPad_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KBNumberPad_Tests.debug.xcconfig"; sourceTree = ""; }; 44 | 3DDBFA6D5B6BC9302ED8DF2B5D2E565B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 42010D1DBE049B75E8A53CA289A1B01B /* KBNumberPad.xib */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.xib; path = KBNumberPad.xib; sourceTree = ""; }; 46 | 56A1B01EA8EB033B52D4EA2E53A3EDB0 /* Pods-KBNumberPad_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KBNumberPad_Example-acknowledgements.plist"; sourceTree = ""; }; 47 | 588B66384207BCA2EDED205310D43206 /* Pods-KBNumberPad_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KBNumberPad_Example.release.xcconfig"; sourceTree = ""; }; 48 | 70795ED160825F1F82362DDD0E60B393 /* KBNumberPad.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = KBNumberPad.framework; path = KBNumberPad.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 747612412FF0CF2145DC4DC24E1D183C /* Pods-KBNumberPad_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KBNumberPad_Tests-umbrella.h"; sourceTree = ""; }; 50 | 8E8C17414392294C6F46774EB68089DA /* KBNumberPad.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = KBNumberPad.swift; sourceTree = ""; }; 51 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 52 | 982883861A7E41852EFE59B4336DD29E /* KBNumberPad-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KBNumberPad-prefix.pch"; sourceTree = ""; }; 53 | 9FE9437484A5529DE5F41AC48A5E0BC3 /* Pods-KBNumberPad_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-KBNumberPad_Tests.modulemap"; sourceTree = ""; }; 54 | A2C43E2A4A0A61777947D690EA62C303 /* Assets.xcassets */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 55 | A5AA71A3EDEAA11D68AF0F4991094BAB /* Pods-KBNumberPad_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KBNumberPad_Example-dummy.m"; sourceTree = ""; }; 56 | AA8A2BEFA9FBC2527CFABEA8D6520966 /* Pods-KBNumberPad_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KBNumberPad_Tests-acknowledgements.plist"; sourceTree = ""; }; 57 | AD18D60C1572CFA1C970F34E0F5C2323 /* Pods-KBNumberPad_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KBNumberPad_Example-acknowledgements.markdown"; sourceTree = ""; }; 58 | B63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 59 | BA687D3AEDD729F36470F02C024392A6 /* Pods-KBNumberPad_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KBNumberPad_Example-umbrella.h"; sourceTree = ""; }; 60 | BF3799A9B92AA7E64C4FF648E414E0E0 /* Pods-KBNumberPad_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KBNumberPad_Tests-resources.sh"; sourceTree = ""; }; 61 | C4CA3EF406E23C781D2DD0382BE5C9E7 /* Pods-KBNumberPad_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KBNumberPad_Tests-acknowledgements.markdown"; sourceTree = ""; }; 62 | C5E1B76518E7EE6FB3C899DA012AD193 /* Pods_KBNumberPad_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_KBNumberPad_Example.framework; path = "Pods-KBNumberPad_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | CA1D4DD14B8D4977857ECFE77BBCFFE0 /* KBNumberPad-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KBNumberPad-umbrella.h"; sourceTree = ""; }; 64 | D36E45D2F9611068285A2ADB42E3DBEA /* Pods-KBNumberPad_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KBNumberPad_Example-resources.sh"; sourceTree = ""; }; 65 | D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 66 | DDC94873DB85A244D9A91D00C5FC028F /* KBNumberPad-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "KBNumberPad-dummy.m"; sourceTree = ""; }; 67 | E15B1903A6485E0BB64EB1BC4A6CA07E /* KBNumberPad.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = KBNumberPad.xcconfig; sourceTree = ""; }; 68 | E5B22737AF7CB37A3FB2364F07A0ED37 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 69 | EE75E3CDDB54153FCA1F53881D387DDB /* Pods-KBNumberPad_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-KBNumberPad_Example.modulemap"; sourceTree = ""; }; 70 | F78B7761D3A78C5FBB07F8F1F5B41DF8 /* Pods-KBNumberPad_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KBNumberPad_Tests-frameworks.sh"; sourceTree = ""; }; 71 | /* End PBXFileReference section */ 72 | 73 | /* Begin PBXFrameworksBuildPhase section */ 74 | 4482323319FD4475B0C4E0F2169A89AB /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | 373578D67B4E8A24903EFCF4BE85B768 /* Foundation.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 44F9C4FDAAFB97AFDF01E4EDB62C385E /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 2BA7049CABF5A54733B66F17A42DA174 /* Foundation.framework in Frameworks */, 87 | D28AB9B166AD2BE045030B2C2A2BDAB1 /* UIKit.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | B11F4CA051DAF5DD2B3A78257CCF67D1 /* Frameworks */ = { 92 | isa = PBXFrameworksBuildPhase; 93 | buildActionMask = 2147483647; 94 | files = ( 95 | 5F7F35B004C439B9B55BF4B01373853A /* Foundation.framework in Frameworks */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | /* End PBXFrameworksBuildPhase section */ 100 | 101 | /* Begin PBXGroup section */ 102 | 1422076693C3D965F02FAF7AA55DFE48 /* Resources */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 3D0B268F9BE14A324EBB3E67031B24AD /* KBNumberPad */, 106 | ); 107 | name = Resources; 108 | sourceTree = ""; 109 | }; 110 | 268937F151C0E7CB06477905057C19A2 /* Pods-KBNumberPad_Example */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | E5B22737AF7CB37A3FB2364F07A0ED37 /* Info.plist */, 114 | EE75E3CDDB54153FCA1F53881D387DDB /* Pods-KBNumberPad_Example.modulemap */, 115 | AD18D60C1572CFA1C970F34E0F5C2323 /* Pods-KBNumberPad_Example-acknowledgements.markdown */, 116 | 56A1B01EA8EB033B52D4EA2E53A3EDB0 /* Pods-KBNumberPad_Example-acknowledgements.plist */, 117 | A5AA71A3EDEAA11D68AF0F4991094BAB /* Pods-KBNumberPad_Example-dummy.m */, 118 | 34EBF7324B28C1D4B855C6466440706C /* Pods-KBNumberPad_Example-frameworks.sh */, 119 | D36E45D2F9611068285A2ADB42E3DBEA /* Pods-KBNumberPad_Example-resources.sh */, 120 | BA687D3AEDD729F36470F02C024392A6 /* Pods-KBNumberPad_Example-umbrella.h */, 121 | 1CD5E03E575FCFC7D12848B1CE93CFD9 /* Pods-KBNumberPad_Example.debug.xcconfig */, 122 | 588B66384207BCA2EDED205310D43206 /* Pods-KBNumberPad_Example.release.xcconfig */, 123 | ); 124 | name = "Pods-KBNumberPad_Example"; 125 | path = "Target Support Files/Pods-KBNumberPad_Example"; 126 | sourceTree = ""; 127 | }; 128 | 3D0B268F9BE14A324EBB3E67031B24AD /* KBNumberPad */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | E6C5A7A02666BE8E31561A3016DD1295 /* Assets */, 132 | ); 133 | name = KBNumberPad; 134 | path = KBNumberPad; 135 | sourceTree = ""; 136 | }; 137 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 438B396F6B4147076630CAEFE34282C1 /* iOS */, 141 | ); 142 | name = Frameworks; 143 | sourceTree = ""; 144 | }; 145 | 438B396F6B4147076630CAEFE34282C1 /* iOS */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */, 149 | B63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */, 150 | ); 151 | name = iOS; 152 | sourceTree = ""; 153 | }; 154 | 71B51DFD905DE026EEF5F97E31DE4C9C /* Targets Support Files */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 268937F151C0E7CB06477905057C19A2 /* Pods-KBNumberPad_Example */, 158 | 84C1E84DD81BEB92633D74AB75F18340 /* Pods-KBNumberPad_Tests */, 159 | ); 160 | name = "Targets Support Files"; 161 | sourceTree = ""; 162 | }; 163 | 7DB346D0F39D3F0E887471402A8071AB = { 164 | isa = PBXGroup; 165 | children = ( 166 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 167 | CEC1C6EFEAAE769E0F566DE10351230E /* Development Pods */, 168 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 169 | BBF9D05106B545989AC8BA0E9B34218A /* Products */, 170 | 71B51DFD905DE026EEF5F97E31DE4C9C /* Targets Support Files */, 171 | ); 172 | sourceTree = ""; 173 | }; 174 | 84C1E84DD81BEB92633D74AB75F18340 /* Pods-KBNumberPad_Tests */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | 3DDBFA6D5B6BC9302ED8DF2B5D2E565B /* Info.plist */, 178 | 9FE9437484A5529DE5F41AC48A5E0BC3 /* Pods-KBNumberPad_Tests.modulemap */, 179 | C4CA3EF406E23C781D2DD0382BE5C9E7 /* Pods-KBNumberPad_Tests-acknowledgements.markdown */, 180 | AA8A2BEFA9FBC2527CFABEA8D6520966 /* Pods-KBNumberPad_Tests-acknowledgements.plist */, 181 | 1F37AADFB2C9BBEDF49398D9AE77E572 /* Pods-KBNumberPad_Tests-dummy.m */, 182 | F78B7761D3A78C5FBB07F8F1F5B41DF8 /* Pods-KBNumberPad_Tests-frameworks.sh */, 183 | BF3799A9B92AA7E64C4FF648E414E0E0 /* Pods-KBNumberPad_Tests-resources.sh */, 184 | 747612412FF0CF2145DC4DC24E1D183C /* Pods-KBNumberPad_Tests-umbrella.h */, 185 | 3B6A5BA2319E89D9C188DD75288225FA /* Pods-KBNumberPad_Tests.debug.xcconfig */, 186 | 22FAF1BADF2777D20D20698A0B8C03BE /* Pods-KBNumberPad_Tests.release.xcconfig */, 187 | ); 188 | name = "Pods-KBNumberPad_Tests"; 189 | path = "Target Support Files/Pods-KBNumberPad_Tests"; 190 | sourceTree = ""; 191 | }; 192 | A8EE57FD9D58E90B9B34CFA12D40E8CD /* Support Files */ = { 193 | isa = PBXGroup; 194 | children = ( 195 | 00BFC5A87742DE9068E7DB14C41A6F9A /* Info.plist */, 196 | 03A51E2F199F8EB91C5B7C1479066645 /* KBNumberPad.modulemap */, 197 | E15B1903A6485E0BB64EB1BC4A6CA07E /* KBNumberPad.xcconfig */, 198 | DDC94873DB85A244D9A91D00C5FC028F /* KBNumberPad-dummy.m */, 199 | 982883861A7E41852EFE59B4336DD29E /* KBNumberPad-prefix.pch */, 200 | CA1D4DD14B8D4977857ECFE77BBCFFE0 /* KBNumberPad-umbrella.h */, 201 | ); 202 | name = "Support Files"; 203 | path = "Example/Pods/Target Support Files/KBNumberPad"; 204 | sourceTree = ""; 205 | }; 206 | BBF9D05106B545989AC8BA0E9B34218A /* Products */ = { 207 | isa = PBXGroup; 208 | children = ( 209 | 70795ED160825F1F82362DDD0E60B393 /* KBNumberPad.framework */, 210 | C5E1B76518E7EE6FB3C899DA012AD193 /* Pods_KBNumberPad_Example.framework */, 211 | 065B7CFD9415881AB5E578F293EE33D4 /* Pods_KBNumberPad_Tests.framework */, 212 | ); 213 | name = Products; 214 | sourceTree = ""; 215 | }; 216 | CEC1C6EFEAAE769E0F566DE10351230E /* Development Pods */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | EB557176C5A4F307A000CCA7D7DF20D9 /* KBNumberPad */, 220 | ); 221 | name = "Development Pods"; 222 | sourceTree = ""; 223 | }; 224 | DEE059CD6A8C6D7BFEE12909CA4DF79F /* Classes */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 8E8C17414392294C6F46774EB68089DA /* KBNumberPad.swift */, 228 | 42010D1DBE049B75E8A53CA289A1B01B /* KBNumberPad.xib */, 229 | ); 230 | name = Classes; 231 | path = Classes; 232 | sourceTree = ""; 233 | }; 234 | E37E3EAD5786F485D50B207F21391AC6 /* KBNumberPad */ = { 235 | isa = PBXGroup; 236 | children = ( 237 | DEE059CD6A8C6D7BFEE12909CA4DF79F /* Classes */, 238 | ); 239 | name = KBNumberPad; 240 | path = KBNumberPad; 241 | sourceTree = ""; 242 | }; 243 | E6C5A7A02666BE8E31561A3016DD1295 /* Assets */ = { 244 | isa = PBXGroup; 245 | children = ( 246 | A2C43E2A4A0A61777947D690EA62C303 /* Assets.xcassets */, 247 | ); 248 | name = Assets; 249 | path = Assets; 250 | sourceTree = ""; 251 | }; 252 | EB557176C5A4F307A000CCA7D7DF20D9 /* KBNumberPad */ = { 253 | isa = PBXGroup; 254 | children = ( 255 | E37E3EAD5786F485D50B207F21391AC6 /* KBNumberPad */, 256 | 1422076693C3D965F02FAF7AA55DFE48 /* Resources */, 257 | A8EE57FD9D58E90B9B34CFA12D40E8CD /* Support Files */, 258 | ); 259 | name = KBNumberPad; 260 | path = ../..; 261 | sourceTree = ""; 262 | }; 263 | /* End PBXGroup section */ 264 | 265 | /* Begin PBXHeadersBuildPhase section */ 266 | 44E4488850FC87CDC2628E8E4FA998AF /* Headers */ = { 267 | isa = PBXHeadersBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | EE0C4DDF44F53C07DA4D94B06D4B10E6 /* Pods-KBNumberPad_Example-umbrella.h in Headers */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | 5291A376383DEAB1C9143F6426E9542A /* Headers */ = { 275 | isa = PBXHeadersBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 29132710CA84F2172EDEF4C95636EF9B /* Pods-KBNumberPad_Tests-umbrella.h in Headers */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | 892B374CE4EC1E0E1FE1B07E7E0EF746 /* Headers */ = { 283 | isa = PBXHeadersBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 660B0BB25B8E984D2F203DB3DA8DC52B /* KBNumberPad-umbrella.h in Headers */, 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | }; 290 | /* End PBXHeadersBuildPhase section */ 291 | 292 | /* Begin PBXNativeTarget section */ 293 | 52877F1CE0FE4987398C166DFBB40F55 /* Pods-KBNumberPad_Tests */ = { 294 | isa = PBXNativeTarget; 295 | buildConfigurationList = 979C97A9D4621BF9CDDF9E73F10956DE /* Build configuration list for PBXNativeTarget "Pods-KBNumberPad_Tests" */; 296 | buildPhases = ( 297 | 94400C458B9E5737FB6F46D4C51F7D4B /* Sources */, 298 | 4482323319FD4475B0C4E0F2169A89AB /* Frameworks */, 299 | 5291A376383DEAB1C9143F6426E9542A /* Headers */, 300 | ); 301 | buildRules = ( 302 | ); 303 | dependencies = ( 304 | ); 305 | name = "Pods-KBNumberPad_Tests"; 306 | productName = "Pods-KBNumberPad_Tests"; 307 | productReference = 065B7CFD9415881AB5E578F293EE33D4 /* Pods_KBNumberPad_Tests.framework */; 308 | productType = "com.apple.product-type.framework"; 309 | }; 310 | 9C2F9892FFAD39D5BF06B6D64D1CC7EE /* KBNumberPad */ = { 311 | isa = PBXNativeTarget; 312 | buildConfigurationList = 48A407B9C5736E5B5324E6CFD9FC596D /* Build configuration list for PBXNativeTarget "KBNumberPad" */; 313 | buildPhases = ( 314 | F7CD7B3FA6A02AAD5DE518A424E30175 /* Sources */, 315 | 44F9C4FDAAFB97AFDF01E4EDB62C385E /* Frameworks */, 316 | E0A4B65AB2DCEC402C61BB103CDACC14 /* Resources */, 317 | 892B374CE4EC1E0E1FE1B07E7E0EF746 /* Headers */, 318 | ); 319 | buildRules = ( 320 | ); 321 | dependencies = ( 322 | ); 323 | name = KBNumberPad; 324 | productName = KBNumberPad; 325 | productReference = 70795ED160825F1F82362DDD0E60B393 /* KBNumberPad.framework */; 326 | productType = "com.apple.product-type.framework"; 327 | }; 328 | A47497EF209507400CE551611B818197 /* Pods-KBNumberPad_Example */ = { 329 | isa = PBXNativeTarget; 330 | buildConfigurationList = EFCDA4485C87C303D03BF57766EBB4AA /* Build configuration list for PBXNativeTarget "Pods-KBNumberPad_Example" */; 331 | buildPhases = ( 332 | 9B9B2623A5C729851B75F08D68A76990 /* Sources */, 333 | B11F4CA051DAF5DD2B3A78257CCF67D1 /* Frameworks */, 334 | 44E4488850FC87CDC2628E8E4FA998AF /* Headers */, 335 | ); 336 | buildRules = ( 337 | ); 338 | dependencies = ( 339 | 203EBEF473AD0045DF2D2C2FAD0850FD /* PBXTargetDependency */, 340 | ); 341 | name = "Pods-KBNumberPad_Example"; 342 | productName = "Pods-KBNumberPad_Example"; 343 | productReference = C5E1B76518E7EE6FB3C899DA012AD193 /* Pods_KBNumberPad_Example.framework */; 344 | productType = "com.apple.product-type.framework"; 345 | }; 346 | /* End PBXNativeTarget section */ 347 | 348 | /* Begin PBXProject section */ 349 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 350 | isa = PBXProject; 351 | attributes = { 352 | LastSwiftUpdateCheck = 0830; 353 | LastUpgradeCheck = 0700; 354 | }; 355 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 356 | compatibilityVersion = "Xcode 3.2"; 357 | developmentRegion = English; 358 | hasScannedForEncodings = 0; 359 | knownRegions = ( 360 | en, 361 | ); 362 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 363 | productRefGroup = BBF9D05106B545989AC8BA0E9B34218A /* Products */; 364 | projectDirPath = ""; 365 | projectRoot = ""; 366 | targets = ( 367 | 9C2F9892FFAD39D5BF06B6D64D1CC7EE /* KBNumberPad */, 368 | A47497EF209507400CE551611B818197 /* Pods-KBNumberPad_Example */, 369 | 52877F1CE0FE4987398C166DFBB40F55 /* Pods-KBNumberPad_Tests */, 370 | ); 371 | }; 372 | /* End PBXProject section */ 373 | 374 | /* Begin PBXResourcesBuildPhase section */ 375 | E0A4B65AB2DCEC402C61BB103CDACC14 /* Resources */ = { 376 | isa = PBXResourcesBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | 868352CD883ED6BCE0B8313B50607EDC /* Assets.xcassets in Resources */, 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | }; 383 | /* End PBXResourcesBuildPhase section */ 384 | 385 | /* Begin PBXSourcesBuildPhase section */ 386 | 94400C458B9E5737FB6F46D4C51F7D4B /* Sources */ = { 387 | isa = PBXSourcesBuildPhase; 388 | buildActionMask = 2147483647; 389 | files = ( 390 | A84BF5E902E3663297AC8CFB4BA816F2 /* Pods-KBNumberPad_Tests-dummy.m in Sources */, 391 | ); 392 | runOnlyForDeploymentPostprocessing = 0; 393 | }; 394 | 9B9B2623A5C729851B75F08D68A76990 /* Sources */ = { 395 | isa = PBXSourcesBuildPhase; 396 | buildActionMask = 2147483647; 397 | files = ( 398 | 8881CC8597EEC5AC61BC7417A9B23757 /* Pods-KBNumberPad_Example-dummy.m in Sources */, 399 | ); 400 | runOnlyForDeploymentPostprocessing = 0; 401 | }; 402 | F7CD7B3FA6A02AAD5DE518A424E30175 /* Sources */ = { 403 | isa = PBXSourcesBuildPhase; 404 | buildActionMask = 2147483647; 405 | files = ( 406 | CCBF86DF87EC6DEBED360602A79CE62C /* KBNumberPad-dummy.m in Sources */, 407 | 22876EABF3368245C4EA3C5457FF1AB6 /* KBNumberPad.swift in Sources */, 408 | 60FB929461800F52B2C389B6F4CDDCD9 /* KBNumberPad.xib in Sources */, 409 | ); 410 | runOnlyForDeploymentPostprocessing = 0; 411 | }; 412 | /* End PBXSourcesBuildPhase section */ 413 | 414 | /* Begin PBXTargetDependency section */ 415 | 203EBEF473AD0045DF2D2C2FAD0850FD /* PBXTargetDependency */ = { 416 | isa = PBXTargetDependency; 417 | name = KBNumberPad; 418 | target = 9C2F9892FFAD39D5BF06B6D64D1CC7EE /* KBNumberPad */; 419 | targetProxy = DB1F903BBDC14A40F1047C902016CA8C /* PBXContainerItemProxy */; 420 | }; 421 | /* End PBXTargetDependency section */ 422 | 423 | /* Begin XCBuildConfiguration section */ 424 | 2BA765FDEC6986CCDFE28A513A33B21D /* Debug */ = { 425 | isa = XCBuildConfiguration; 426 | baseConfigurationReference = E15B1903A6485E0BB64EB1BC4A6CA07E /* KBNumberPad.xcconfig */; 427 | buildSettings = { 428 | CODE_SIGN_IDENTITY = ""; 429 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 430 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 431 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 432 | CURRENT_PROJECT_VERSION = 1; 433 | DEBUG_INFORMATION_FORMAT = dwarf; 434 | DEFINES_MODULE = YES; 435 | DYLIB_COMPATIBILITY_VERSION = 1; 436 | DYLIB_CURRENT_VERSION = 1; 437 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 438 | ENABLE_STRICT_OBJC_MSGSEND = YES; 439 | GCC_NO_COMMON_BLOCKS = YES; 440 | GCC_PREFIX_HEADER = "Target Support Files/KBNumberPad/KBNumberPad-prefix.pch"; 441 | INFOPLIST_FILE = "Target Support Files/KBNumberPad/Info.plist"; 442 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 443 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 444 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 445 | MODULEMAP_FILE = "Target Support Files/KBNumberPad/KBNumberPad.modulemap"; 446 | MTL_ENABLE_DEBUG_INFO = YES; 447 | PRODUCT_NAME = KBNumberPad; 448 | SDKROOT = iphoneos; 449 | SKIP_INSTALL = YES; 450 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 451 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 452 | SWIFT_VERSION = 3.0; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | VERSIONING_SYSTEM = "apple-generic"; 455 | VERSION_INFO_PREFIX = ""; 456 | }; 457 | name = Debug; 458 | }; 459 | 2F2A216F2B1BE16382E407BAC37E8AA7 /* Release */ = { 460 | isa = XCBuildConfiguration; 461 | baseConfigurationReference = E15B1903A6485E0BB64EB1BC4A6CA07E /* KBNumberPad.xcconfig */; 462 | buildSettings = { 463 | CODE_SIGN_IDENTITY = ""; 464 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 465 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 466 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 467 | CURRENT_PROJECT_VERSION = 1; 468 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 469 | DEFINES_MODULE = YES; 470 | DYLIB_COMPATIBILITY_VERSION = 1; 471 | DYLIB_CURRENT_VERSION = 1; 472 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 473 | ENABLE_STRICT_OBJC_MSGSEND = YES; 474 | GCC_NO_COMMON_BLOCKS = YES; 475 | GCC_PREFIX_HEADER = "Target Support Files/KBNumberPad/KBNumberPad-prefix.pch"; 476 | INFOPLIST_FILE = "Target Support Files/KBNumberPad/Info.plist"; 477 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 478 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 480 | MODULEMAP_FILE = "Target Support Files/KBNumberPad/KBNumberPad.modulemap"; 481 | MTL_ENABLE_DEBUG_INFO = NO; 482 | PRODUCT_NAME = KBNumberPad; 483 | SDKROOT = iphoneos; 484 | SKIP_INSTALL = YES; 485 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 486 | SWIFT_VERSION = 3.0; 487 | TARGETED_DEVICE_FAMILY = "1,2"; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | VERSION_INFO_PREFIX = ""; 490 | }; 491 | name = Release; 492 | }; 493 | 3148BDCC40B769557F667762D6A94842 /* Release */ = { 494 | isa = XCBuildConfiguration; 495 | baseConfigurationReference = 22FAF1BADF2777D20D20698A0B8C03BE /* Pods-KBNumberPad_Tests.release.xcconfig */; 496 | buildSettings = { 497 | CODE_SIGN_IDENTITY = ""; 498 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 499 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 500 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 501 | CURRENT_PROJECT_VERSION = 1; 502 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 503 | DEFINES_MODULE = YES; 504 | DYLIB_COMPATIBILITY_VERSION = 1; 505 | DYLIB_CURRENT_VERSION = 1; 506 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 507 | ENABLE_STRICT_OBJC_MSGSEND = YES; 508 | GCC_NO_COMMON_BLOCKS = YES; 509 | INFOPLIST_FILE = "Target Support Files/Pods-KBNumberPad_Tests/Info.plist"; 510 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 511 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 512 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 513 | MACH_O_TYPE = staticlib; 514 | MODULEMAP_FILE = "Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests.modulemap"; 515 | MTL_ENABLE_DEBUG_INFO = NO; 516 | OTHER_LDFLAGS = ""; 517 | OTHER_LIBTOOLFLAGS = ""; 518 | PODS_ROOT = "$(SRCROOT)"; 519 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 520 | PRODUCT_NAME = Pods_KBNumberPad_Tests; 521 | SDKROOT = iphoneos; 522 | SKIP_INSTALL = YES; 523 | TARGETED_DEVICE_FAMILY = "1,2"; 524 | VERSIONING_SYSTEM = "apple-generic"; 525 | VERSION_INFO_PREFIX = ""; 526 | }; 527 | name = Release; 528 | }; 529 | 4E487F173E6C9664F4E9E26B9635D23C /* Debug */ = { 530 | isa = XCBuildConfiguration; 531 | buildSettings = { 532 | ALWAYS_SEARCH_USER_PATHS = NO; 533 | CLANG_ANALYZER_NONNULL = YES; 534 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 535 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 536 | CLANG_CXX_LIBRARY = "libc++"; 537 | CLANG_ENABLE_MODULES = YES; 538 | CLANG_ENABLE_OBJC_ARC = YES; 539 | CLANG_WARN_BOOL_CONVERSION = YES; 540 | CLANG_WARN_CONSTANT_CONVERSION = YES; 541 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 542 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 543 | CLANG_WARN_EMPTY_BODY = YES; 544 | CLANG_WARN_ENUM_CONVERSION = YES; 545 | CLANG_WARN_INFINITE_RECURSION = YES; 546 | CLANG_WARN_INT_CONVERSION = YES; 547 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 548 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 549 | CLANG_WARN_UNREACHABLE_CODE = YES; 550 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 551 | CODE_SIGNING_REQUIRED = NO; 552 | COPY_PHASE_STRIP = NO; 553 | ENABLE_TESTABILITY = YES; 554 | GCC_C_LANGUAGE_STANDARD = gnu99; 555 | GCC_DYNAMIC_NO_PIC = NO; 556 | GCC_OPTIMIZATION_LEVEL = 0; 557 | GCC_PREPROCESSOR_DEFINITIONS = ( 558 | "POD_CONFIGURATION_DEBUG=1", 559 | "DEBUG=1", 560 | "$(inherited)", 561 | ); 562 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 563 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 564 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 565 | GCC_WARN_UNDECLARED_SELECTOR = YES; 566 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 567 | GCC_WARN_UNUSED_FUNCTION = YES; 568 | GCC_WARN_UNUSED_VARIABLE = YES; 569 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 570 | ONLY_ACTIVE_ARCH = YES; 571 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 572 | STRIP_INSTALLED_PRODUCT = NO; 573 | SYMROOT = "${SRCROOT}/../build"; 574 | }; 575 | name = Debug; 576 | }; 577 | 75DCF00BAF8F9D8CED28161618F47342 /* Debug */ = { 578 | isa = XCBuildConfiguration; 579 | baseConfigurationReference = 1CD5E03E575FCFC7D12848B1CE93CFD9 /* Pods-KBNumberPad_Example.debug.xcconfig */; 580 | buildSettings = { 581 | CODE_SIGN_IDENTITY = ""; 582 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 583 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 584 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 585 | CURRENT_PROJECT_VERSION = 1; 586 | DEBUG_INFORMATION_FORMAT = dwarf; 587 | DEFINES_MODULE = YES; 588 | DYLIB_COMPATIBILITY_VERSION = 1; 589 | DYLIB_CURRENT_VERSION = 1; 590 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 591 | ENABLE_STRICT_OBJC_MSGSEND = YES; 592 | GCC_NO_COMMON_BLOCKS = YES; 593 | INFOPLIST_FILE = "Target Support Files/Pods-KBNumberPad_Example/Info.plist"; 594 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 595 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 596 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 597 | MACH_O_TYPE = staticlib; 598 | MODULEMAP_FILE = "Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example.modulemap"; 599 | MTL_ENABLE_DEBUG_INFO = YES; 600 | OTHER_LDFLAGS = ""; 601 | OTHER_LIBTOOLFLAGS = ""; 602 | PODS_ROOT = "$(SRCROOT)"; 603 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 604 | PRODUCT_NAME = Pods_KBNumberPad_Example; 605 | SDKROOT = iphoneos; 606 | SKIP_INSTALL = YES; 607 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 608 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 609 | SWIFT_VERSION = 3.0; 610 | TARGETED_DEVICE_FAMILY = "1,2"; 611 | VERSIONING_SYSTEM = "apple-generic"; 612 | VERSION_INFO_PREFIX = ""; 613 | }; 614 | name = Debug; 615 | }; 616 | AF36F6528B6F6100605FFC366DC255EA /* Release */ = { 617 | isa = XCBuildConfiguration; 618 | baseConfigurationReference = 588B66384207BCA2EDED205310D43206 /* Pods-KBNumberPad_Example.release.xcconfig */; 619 | buildSettings = { 620 | CODE_SIGN_IDENTITY = ""; 621 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 622 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 623 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 624 | CURRENT_PROJECT_VERSION = 1; 625 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 626 | DEFINES_MODULE = YES; 627 | DYLIB_COMPATIBILITY_VERSION = 1; 628 | DYLIB_CURRENT_VERSION = 1; 629 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 630 | ENABLE_STRICT_OBJC_MSGSEND = YES; 631 | GCC_NO_COMMON_BLOCKS = YES; 632 | INFOPLIST_FILE = "Target Support Files/Pods-KBNumberPad_Example/Info.plist"; 633 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 634 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 635 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 636 | MACH_O_TYPE = staticlib; 637 | MODULEMAP_FILE = "Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example.modulemap"; 638 | MTL_ENABLE_DEBUG_INFO = NO; 639 | OTHER_LDFLAGS = ""; 640 | OTHER_LIBTOOLFLAGS = ""; 641 | PODS_ROOT = "$(SRCROOT)"; 642 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 643 | PRODUCT_NAME = Pods_KBNumberPad_Example; 644 | SDKROOT = iphoneos; 645 | SKIP_INSTALL = YES; 646 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 647 | SWIFT_VERSION = 3.0; 648 | TARGETED_DEVICE_FAMILY = "1,2"; 649 | VERSIONING_SYSTEM = "apple-generic"; 650 | VERSION_INFO_PREFIX = ""; 651 | }; 652 | name = Release; 653 | }; 654 | BDD0139D6EB93FA375F887ABD62DAB2E /* Release */ = { 655 | isa = XCBuildConfiguration; 656 | buildSettings = { 657 | ALWAYS_SEARCH_USER_PATHS = NO; 658 | CLANG_ANALYZER_NONNULL = YES; 659 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 660 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 661 | CLANG_CXX_LIBRARY = "libc++"; 662 | CLANG_ENABLE_MODULES = YES; 663 | CLANG_ENABLE_OBJC_ARC = YES; 664 | CLANG_WARN_BOOL_CONVERSION = YES; 665 | CLANG_WARN_CONSTANT_CONVERSION = YES; 666 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 667 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 668 | CLANG_WARN_EMPTY_BODY = YES; 669 | CLANG_WARN_ENUM_CONVERSION = YES; 670 | CLANG_WARN_INFINITE_RECURSION = YES; 671 | CLANG_WARN_INT_CONVERSION = YES; 672 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 673 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 674 | CLANG_WARN_UNREACHABLE_CODE = YES; 675 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 676 | CODE_SIGNING_REQUIRED = NO; 677 | COPY_PHASE_STRIP = YES; 678 | ENABLE_NS_ASSERTIONS = NO; 679 | GCC_C_LANGUAGE_STANDARD = gnu99; 680 | GCC_PREPROCESSOR_DEFINITIONS = ( 681 | "POD_CONFIGURATION_RELEASE=1", 682 | "$(inherited)", 683 | ); 684 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 685 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 686 | GCC_WARN_UNDECLARED_SELECTOR = YES; 687 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 688 | GCC_WARN_UNUSED_FUNCTION = YES; 689 | GCC_WARN_UNUSED_VARIABLE = YES; 690 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 691 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 692 | STRIP_INSTALLED_PRODUCT = NO; 693 | SYMROOT = "${SRCROOT}/../build"; 694 | VALIDATE_PRODUCT = YES; 695 | }; 696 | name = Release; 697 | }; 698 | CEE15AF35FDF912E98BE798C42CBD3B2 /* Debug */ = { 699 | isa = XCBuildConfiguration; 700 | baseConfigurationReference = 3B6A5BA2319E89D9C188DD75288225FA /* Pods-KBNumberPad_Tests.debug.xcconfig */; 701 | buildSettings = { 702 | CODE_SIGN_IDENTITY = ""; 703 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 704 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 705 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 706 | CURRENT_PROJECT_VERSION = 1; 707 | DEBUG_INFORMATION_FORMAT = dwarf; 708 | DEFINES_MODULE = YES; 709 | DYLIB_COMPATIBILITY_VERSION = 1; 710 | DYLIB_CURRENT_VERSION = 1; 711 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 712 | ENABLE_STRICT_OBJC_MSGSEND = YES; 713 | GCC_NO_COMMON_BLOCKS = YES; 714 | INFOPLIST_FILE = "Target Support Files/Pods-KBNumberPad_Tests/Info.plist"; 715 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 716 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 717 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 718 | MACH_O_TYPE = staticlib; 719 | MODULEMAP_FILE = "Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests.modulemap"; 720 | MTL_ENABLE_DEBUG_INFO = YES; 721 | OTHER_LDFLAGS = ""; 722 | OTHER_LIBTOOLFLAGS = ""; 723 | PODS_ROOT = "$(SRCROOT)"; 724 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 725 | PRODUCT_NAME = Pods_KBNumberPad_Tests; 726 | SDKROOT = iphoneos; 727 | SKIP_INSTALL = YES; 728 | TARGETED_DEVICE_FAMILY = "1,2"; 729 | VERSIONING_SYSTEM = "apple-generic"; 730 | VERSION_INFO_PREFIX = ""; 731 | }; 732 | name = Debug; 733 | }; 734 | /* End XCBuildConfiguration section */ 735 | 736 | /* Begin XCConfigurationList section */ 737 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 738 | isa = XCConfigurationList; 739 | buildConfigurations = ( 740 | 4E487F173E6C9664F4E9E26B9635D23C /* Debug */, 741 | BDD0139D6EB93FA375F887ABD62DAB2E /* Release */, 742 | ); 743 | defaultConfigurationIsVisible = 0; 744 | defaultConfigurationName = Release; 745 | }; 746 | 48A407B9C5736E5B5324E6CFD9FC596D /* Build configuration list for PBXNativeTarget "KBNumberPad" */ = { 747 | isa = XCConfigurationList; 748 | buildConfigurations = ( 749 | 2BA765FDEC6986CCDFE28A513A33B21D /* Debug */, 750 | 2F2A216F2B1BE16382E407BAC37E8AA7 /* Release */, 751 | ); 752 | defaultConfigurationIsVisible = 0; 753 | defaultConfigurationName = Release; 754 | }; 755 | 979C97A9D4621BF9CDDF9E73F10956DE /* Build configuration list for PBXNativeTarget "Pods-KBNumberPad_Tests" */ = { 756 | isa = XCConfigurationList; 757 | buildConfigurations = ( 758 | CEE15AF35FDF912E98BE798C42CBD3B2 /* Debug */, 759 | 3148BDCC40B769557F667762D6A94842 /* Release */, 760 | ); 761 | defaultConfigurationIsVisible = 0; 762 | defaultConfigurationName = Release; 763 | }; 764 | EFCDA4485C87C303D03BF57766EBB4AA /* Build configuration list for PBXNativeTarget "Pods-KBNumberPad_Example" */ = { 765 | isa = XCConfigurationList; 766 | buildConfigurations = ( 767 | 75DCF00BAF8F9D8CED28161618F47342 /* Debug */, 768 | AF36F6528B6F6100605FFC366DC255EA /* Release */, 769 | ); 770 | defaultConfigurationIsVisible = 0; 771 | defaultConfigurationName = Release; 772 | }; 773 | /* End XCConfigurationList section */ 774 | }; 775 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 776 | } 777 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KBNumberPad/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KBNumberPad/KBNumberPad-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_KBNumberPad : NSObject 3 | @end 4 | @implementation PodsDummy_KBNumberPad 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KBNumberPad/KBNumberPad-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KBNumberPad/KBNumberPad-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double KBNumberPadVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char KBNumberPadVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KBNumberPad/KBNumberPad.modulemap: -------------------------------------------------------------------------------- 1 | framework module KBNumberPad { 2 | umbrella header "KBNumberPad-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KBNumberPad/KBNumberPad.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/KBNumberPad 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = -framework "UIKit" 5 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## KBNumberPad 5 | 6 | Apache License 7 | Version 2.0, January 2004 8 | http://www.apache.org/licenses/ 9 | 10 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 11 | 12 | 1. Definitions. 13 | 14 | "License" shall mean the terms and conditions for use, reproduction, 15 | and distribution as defined by Sections 1 through 9 of this document. 16 | 17 | "Licensor" shall mean the copyright owner or entity authorized by 18 | the copyright owner that is granting the License. 19 | 20 | "Legal Entity" shall mean the union of the acting entity and all 21 | other entities that control, are controlled by, or are under common 22 | control with that entity. For the purposes of this definition, 23 | "control" means (i) the power, direct or indirect, to cause the 24 | direction or management of such entity, whether by contract or 25 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 26 | outstanding shares, or (iii) beneficial ownership of such entity. 27 | 28 | "You" (or "Your") shall mean an individual or Legal Entity 29 | exercising permissions granted by this License. 30 | 31 | "Source" form shall mean the preferred form for making modifications, 32 | including but not limited to software source code, documentation 33 | source, and configuration files. 34 | 35 | "Object" form shall mean any form resulting from mechanical 36 | transformation or translation of a Source form, including but 37 | not limited to compiled object code, generated documentation, 38 | and conversions to other media types. 39 | 40 | "Work" shall mean the work of authorship, whether in Source or 41 | Object form, made available under the License, as indicated by a 42 | copyright notice that is included in or attached to the work 43 | (an example is provided in the Appendix below). 44 | 45 | "Derivative Works" shall mean any work, whether in Source or Object 46 | form, that is based on (or derived from) the Work and for which the 47 | editorial revisions, annotations, elaborations, or other modifications 48 | represent, as a whole, an original work of authorship. For the purposes 49 | of this License, Derivative Works shall not include works that remain 50 | separable from, or merely link (or bind by name) to the interfaces of, 51 | the Work and Derivative Works thereof. 52 | 53 | "Contribution" shall mean any work of authorship, including 54 | the original version of the Work and any modifications or additions 55 | to that Work or Derivative Works thereof, that is intentionally 56 | submitted to Licensor for inclusion in the Work by the copyright owner 57 | or by an individual or Legal Entity authorized to submit on behalf of 58 | the copyright owner. For the purposes of this definition, "submitted" 59 | means any form of electronic, verbal, or written communication sent 60 | to the Licensor or its representatives, including but not limited to 61 | communication on electronic mailing lists, source code control systems, 62 | and issue tracking systems that are managed by, or on behalf of, the 63 | Licensor for the purpose of discussing and improving the Work, but 64 | excluding communication that is conspicuously marked or otherwise 65 | designated in writing by the copyright owner as "Not a Contribution." 66 | 67 | "Contributor" shall mean Licensor and any individual or Legal Entity 68 | on behalf of whom a Contribution has been received by Licensor and 69 | subsequently incorporated within the Work. 70 | 71 | 2. Grant of Copyright License. Subject to the terms and conditions of 72 | this License, each Contributor hereby grants to You a perpetual, 73 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 74 | copyright license to reproduce, prepare Derivative Works of, 75 | publicly display, publicly perform, sublicense, and distribute the 76 | Work and such Derivative Works in Source or Object form. 77 | 78 | 3. Grant of Patent License. Subject to the terms and conditions of 79 | this License, each Contributor hereby grants to You a perpetual, 80 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 81 | (except as stated in this section) patent license to make, have made, 82 | use, offer to sell, sell, import, and otherwise transfer the Work, 83 | where such license applies only to those patent claims licensable 84 | by such Contributor that are necessarily infringed by their 85 | Contribution(s) alone or by combination of their Contribution(s) 86 | with the Work to which such Contribution(s) was submitted. If You 87 | institute patent litigation against any entity (including a 88 | cross-claim or counterclaim in a lawsuit) alleging that the Work 89 | or a Contribution incorporated within the Work constitutes direct 90 | or contributory patent infringement, then any patent licenses 91 | granted to You under this License for that Work shall terminate 92 | as of the date such litigation is filed. 93 | 94 | 4. Redistribution. You may reproduce and distribute copies of the 95 | Work or Derivative Works thereof in any medium, with or without 96 | modifications, and in Source or Object form, provided that You 97 | meet the following conditions: 98 | 99 | (a) You must give any other recipients of the Work or 100 | Derivative Works a copy of this License; and 101 | 102 | (b) You must cause any modified files to carry prominent notices 103 | stating that You changed the files; and 104 | 105 | (c) You must retain, in the Source form of any Derivative Works 106 | that You distribute, all copyright, patent, trademark, and 107 | attribution notices from the Source form of the Work, 108 | excluding those notices that do not pertain to any part of 109 | the Derivative Works; and 110 | 111 | (d) If the Work includes a "NOTICE" text file as part of its 112 | distribution, then any Derivative Works that You distribute must 113 | include a readable copy of the attribution notices contained 114 | within such NOTICE file, excluding those notices that do not 115 | pertain to any part of the Derivative Works, in at least one 116 | of the following places: within a NOTICE text file distributed 117 | as part of the Derivative Works; within the Source form or 118 | documentation, if provided along with the Derivative Works; or, 119 | within a display generated by the Derivative Works, if and 120 | wherever such third-party notices normally appear. The contents 121 | of the NOTICE file are for informational purposes only and 122 | do not modify the License. You may add Your own attribution 123 | notices within Derivative Works that You distribute, alongside 124 | or as an addendum to the NOTICE text from the Work, provided 125 | that such additional attribution notices cannot be construed 126 | as modifying the License. 127 | 128 | You may add Your own copyright statement to Your modifications and 129 | may provide additional or different license terms and conditions 130 | for use, reproduction, or distribution of Your modifications, or 131 | for any such Derivative Works as a whole, provided Your use, 132 | reproduction, and distribution of the Work otherwise complies with 133 | the conditions stated in this License. 134 | 135 | 5. Submission of Contributions. Unless You explicitly state otherwise, 136 | any Contribution intentionally submitted for inclusion in the Work 137 | by You to the Licensor shall be under the terms and conditions of 138 | this License, without any additional terms or conditions. 139 | Notwithstanding the above, nothing herein shall supersede or modify 140 | the terms of any separate license agreement you may have executed 141 | with Licensor regarding such Contributions. 142 | 143 | 6. Trademarks. This License does not grant permission to use the trade 144 | names, trademarks, service marks, or product names of the Licensor, 145 | except as required for reasonable and customary use in describing the 146 | origin of the Work and reproducing the content of the NOTICE file. 147 | 148 | 7. Disclaimer of Warranty. Unless required by applicable law or 149 | agreed to in writing, Licensor provides the Work (and each 150 | Contributor provides its Contributions) on an "AS IS" BASIS, 151 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 152 | implied, including, without limitation, any warranties or conditions 153 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 154 | PARTICULAR PURPOSE. You are solely responsible for determining the 155 | appropriateness of using or redistributing the Work and assume any 156 | risks associated with Your exercise of permissions under this License. 157 | 158 | 8. Limitation of Liability. In no event and under no legal theory, 159 | whether in tort (including negligence), contract, or otherwise, 160 | unless required by applicable law (such as deliberate and grossly 161 | negligent acts) or agreed to in writing, shall any Contributor be 162 | liable to You for damages, including any direct, indirect, special, 163 | incidental, or consequential damages of any character arising as a 164 | result of this License or out of the use or inability to use the 165 | Work (including but not limited to damages for loss of goodwill, 166 | work stoppage, computer failure or malfunction, or any and all 167 | other commercial damages or losses), even if such Contributor 168 | has been advised of the possibility of such damages. 169 | 170 | 9. Accepting Warranty or Additional Liability. While redistributing 171 | the Work or Derivative Works thereof, You may choose to offer, 172 | and charge a fee for, acceptance of support, warranty, indemnity, 173 | or other liability obligations and/or rights consistent with this 174 | License. However, in accepting such obligations, You may act only 175 | on Your own behalf and on Your sole responsibility, not on behalf 176 | of any other Contributor, and only if You agree to indemnify, 177 | defend, and hold each Contributor harmless for any liability 178 | incurred by, or claims asserted against, such Contributor by reason 179 | of your accepting any such warranty or additional liability. 180 | 181 | END OF TERMS AND CONDITIONS 182 | 183 | APPENDIX: How to apply the Apache License to your work. 184 | 185 | To apply the Apache License to your work, attach the following 186 | boilerplate notice, with the fields enclosed by brackets "{}" 187 | replaced with your own identifying information. (Don't include 188 | the brackets!) The text should be enclosed in the appropriate 189 | comment syntax for the file format. We also recommend that a 190 | file or class name and description of purpose be included on the 191 | same "printed page" as the copyright notice for easier 192 | identification within third-party archives. 193 | 194 | Copyright {yyyy} {name of copyright owner} 195 | 196 | Licensed under the Apache License, Version 2.0 (the "License"); 197 | you may not use this file except in compliance with the License. 198 | You may obtain a copy of the License at 199 | 200 | http://www.apache.org/licenses/LICENSE-2.0 201 | 202 | Unless required by applicable law or agreed to in writing, software 203 | distributed under the License is distributed on an "AS IS" BASIS, 204 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 205 | See the License for the specific language governing permissions and 206 | limitations under the License. 207 | 208 | Generated by CocoaPods - https://cocoapods.org 209 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Apache License 18 | Version 2.0, January 2004 19 | http://www.apache.org/licenses/ 20 | 21 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 22 | 23 | 1. Definitions. 24 | 25 | "License" shall mean the terms and conditions for use, reproduction, 26 | and distribution as defined by Sections 1 through 9 of this document. 27 | 28 | "Licensor" shall mean the copyright owner or entity authorized by 29 | the copyright owner that is granting the License. 30 | 31 | "Legal Entity" shall mean the union of the acting entity and all 32 | other entities that control, are controlled by, or are under common 33 | control with that entity. For the purposes of this definition, 34 | "control" means (i) the power, direct or indirect, to cause the 35 | direction or management of such entity, whether by contract or 36 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 37 | outstanding shares, or (iii) beneficial ownership of such entity. 38 | 39 | "You" (or "Your") shall mean an individual or Legal Entity 40 | exercising permissions granted by this License. 41 | 42 | "Source" form shall mean the preferred form for making modifications, 43 | including but not limited to software source code, documentation 44 | source, and configuration files. 45 | 46 | "Object" form shall mean any form resulting from mechanical 47 | transformation or translation of a Source form, including but 48 | not limited to compiled object code, generated documentation, 49 | and conversions to other media types. 50 | 51 | "Work" shall mean the work of authorship, whether in Source or 52 | Object form, made available under the License, as indicated by a 53 | copyright notice that is included in or attached to the work 54 | (an example is provided in the Appendix below). 55 | 56 | "Derivative Works" shall mean any work, whether in Source or Object 57 | form, that is based on (or derived from) the Work and for which the 58 | editorial revisions, annotations, elaborations, or other modifications 59 | represent, as a whole, an original work of authorship. For the purposes 60 | of this License, Derivative Works shall not include works that remain 61 | separable from, or merely link (or bind by name) to the interfaces of, 62 | the Work and Derivative Works thereof. 63 | 64 | "Contribution" shall mean any work of authorship, including 65 | the original version of the Work and any modifications or additions 66 | to that Work or Derivative Works thereof, that is intentionally 67 | submitted to Licensor for inclusion in the Work by the copyright owner 68 | or by an individual or Legal Entity authorized to submit on behalf of 69 | the copyright owner. For the purposes of this definition, "submitted" 70 | means any form of electronic, verbal, or written communication sent 71 | to the Licensor or its representatives, including but not limited to 72 | communication on electronic mailing lists, source code control systems, 73 | and issue tracking systems that are managed by, or on behalf of, the 74 | Licensor for the purpose of discussing and improving the Work, but 75 | excluding communication that is conspicuously marked or otherwise 76 | designated in writing by the copyright owner as "Not a Contribution." 77 | 78 | "Contributor" shall mean Licensor and any individual or Legal Entity 79 | on behalf of whom a Contribution has been received by Licensor and 80 | subsequently incorporated within the Work. 81 | 82 | 2. Grant of Copyright License. Subject to the terms and conditions of 83 | this License, each Contributor hereby grants to You a perpetual, 84 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 85 | copyright license to reproduce, prepare Derivative Works of, 86 | publicly display, publicly perform, sublicense, and distribute the 87 | Work and such Derivative Works in Source or Object form. 88 | 89 | 3. Grant of Patent License. Subject to the terms and conditions of 90 | this License, each Contributor hereby grants to You a perpetual, 91 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 92 | (except as stated in this section) patent license to make, have made, 93 | use, offer to sell, sell, import, and otherwise transfer the Work, 94 | where such license applies only to those patent claims licensable 95 | by such Contributor that are necessarily infringed by their 96 | Contribution(s) alone or by combination of their Contribution(s) 97 | with the Work to which such Contribution(s) was submitted. If You 98 | institute patent litigation against any entity (including a 99 | cross-claim or counterclaim in a lawsuit) alleging that the Work 100 | or a Contribution incorporated within the Work constitutes direct 101 | or contributory patent infringement, then any patent licenses 102 | granted to You under this License for that Work shall terminate 103 | as of the date such litigation is filed. 104 | 105 | 4. Redistribution. You may reproduce and distribute copies of the 106 | Work or Derivative Works thereof in any medium, with or without 107 | modifications, and in Source or Object form, provided that You 108 | meet the following conditions: 109 | 110 | (a) You must give any other recipients of the Work or 111 | Derivative Works a copy of this License; and 112 | 113 | (b) You must cause any modified files to carry prominent notices 114 | stating that You changed the files; and 115 | 116 | (c) You must retain, in the Source form of any Derivative Works 117 | that You distribute, all copyright, patent, trademark, and 118 | attribution notices from the Source form of the Work, 119 | excluding those notices that do not pertain to any part of 120 | the Derivative Works; and 121 | 122 | (d) If the Work includes a "NOTICE" text file as part of its 123 | distribution, then any Derivative Works that You distribute must 124 | include a readable copy of the attribution notices contained 125 | within such NOTICE file, excluding those notices that do not 126 | pertain to any part of the Derivative Works, in at least one 127 | of the following places: within a NOTICE text file distributed 128 | as part of the Derivative Works; within the Source form or 129 | documentation, if provided along with the Derivative Works; or, 130 | within a display generated by the Derivative Works, if and 131 | wherever such third-party notices normally appear. The contents 132 | of the NOTICE file are for informational purposes only and 133 | do not modify the License. You may add Your own attribution 134 | notices within Derivative Works that You distribute, alongside 135 | or as an addendum to the NOTICE text from the Work, provided 136 | that such additional attribution notices cannot be construed 137 | as modifying the License. 138 | 139 | You may add Your own copyright statement to Your modifications and 140 | may provide additional or different license terms and conditions 141 | for use, reproduction, or distribution of Your modifications, or 142 | for any such Derivative Works as a whole, provided Your use, 143 | reproduction, and distribution of the Work otherwise complies with 144 | the conditions stated in this License. 145 | 146 | 5. Submission of Contributions. Unless You explicitly state otherwise, 147 | any Contribution intentionally submitted for inclusion in the Work 148 | by You to the Licensor shall be under the terms and conditions of 149 | this License, without any additional terms or conditions. 150 | Notwithstanding the above, nothing herein shall supersede or modify 151 | the terms of any separate license agreement you may have executed 152 | with Licensor regarding such Contributions. 153 | 154 | 6. Trademarks. This License does not grant permission to use the trade 155 | names, trademarks, service marks, or product names of the Licensor, 156 | except as required for reasonable and customary use in describing the 157 | origin of the Work and reproducing the content of the NOTICE file. 158 | 159 | 7. Disclaimer of Warranty. Unless required by applicable law or 160 | agreed to in writing, Licensor provides the Work (and each 161 | Contributor provides its Contributions) on an "AS IS" BASIS, 162 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 163 | implied, including, without limitation, any warranties or conditions 164 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 165 | PARTICULAR PURPOSE. You are solely responsible for determining the 166 | appropriateness of using or redistributing the Work and assume any 167 | risks associated with Your exercise of permissions under this License. 168 | 169 | 8. Limitation of Liability. In no event and under no legal theory, 170 | whether in tort (including negligence), contract, or otherwise, 171 | unless required by applicable law (such as deliberate and grossly 172 | negligent acts) or agreed to in writing, shall any Contributor be 173 | liable to You for damages, including any direct, indirect, special, 174 | incidental, or consequential damages of any character arising as a 175 | result of this License or out of the use or inability to use the 176 | Work (including but not limited to damages for loss of goodwill, 177 | work stoppage, computer failure or malfunction, or any and all 178 | other commercial damages or losses), even if such Contributor 179 | has been advised of the possibility of such damages. 180 | 181 | 9. Accepting Warranty or Additional Liability. While redistributing 182 | the Work or Derivative Works thereof, You may choose to offer, 183 | and charge a fee for, acceptance of support, warranty, indemnity, 184 | or other liability obligations and/or rights consistent with this 185 | License. However, in accepting such obligations, You may act only 186 | on Your own behalf and on Your sole responsibility, not on behalf 187 | of any other Contributor, and only if You agree to indemnify, 188 | defend, and hold each Contributor harmless for any liability 189 | incurred by, or claims asserted against, such Contributor by reason 190 | of your accepting any such warranty or additional liability. 191 | 192 | END OF TERMS AND CONDITIONS 193 | 194 | APPENDIX: How to apply the Apache License to your work. 195 | 196 | To apply the Apache License to your work, attach the following 197 | boilerplate notice, with the fields enclosed by brackets "{}" 198 | replaced with your own identifying information. (Don't include 199 | the brackets!) The text should be enclosed in the appropriate 200 | comment syntax for the file format. We also recommend that a 201 | file or class name and description of purpose be included on the 202 | same "printed page" as the copyright notice for easier 203 | identification within third-party archives. 204 | 205 | Copyright {yyyy} {name of copyright owner} 206 | 207 | Licensed under the Apache License, Version 2.0 (the "License"); 208 | you may not use this file except in compliance with the License. 209 | You may obtain a copy of the License at 210 | 211 | http://www.apache.org/licenses/LICENSE-2.0 212 | 213 | Unless required by applicable law or agreed to in writing, software 214 | distributed under the License is distributed on an "AS IS" BASIS, 215 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 216 | See the License for the specific language governing permissions and 217 | limitations under the License. 218 | 219 | License 220 | Apache 2.0 221 | Title 222 | KBNumberPad 223 | Type 224 | PSGroupSpecifier 225 | 226 | 227 | FooterText 228 | Generated by CocoaPods - https://cocoapods.org 229 | Title 230 | 231 | Type 232 | PSGroupSpecifier 233 | 234 | 235 | StringsTable 236 | Acknowledgements 237 | Title 238 | Acknowledgements 239 | 240 | 241 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KBNumberPad_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KBNumberPad_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/KBNumberPad/KBNumberPad.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/KBNumberPad/KBNumberPad.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_KBNumberPad_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_KBNumberPad_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad/KBNumberPad.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "KBNumberPad" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KBNumberPad_Example { 2 | umbrella header "Pods-KBNumberPad_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Example/Pods-KBNumberPad_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad/KBNumberPad.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "KBNumberPad" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KBNumberPad_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KBNumberPad_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_KBNumberPad_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_KBNumberPad_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad/KBNumberPad.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KBNumberPad_Tests { 2 | umbrella header "Pods-KBNumberPad_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KBNumberPad_Tests/Pods-KBNumberPad_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KBNumberPad/KBNumberPad.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import KBNumberPad 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /KBNumberPad.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'KBNumberPad' 3 | s.version = '1.0.1' 4 | s.summary = 'Customizable number pad as replacement of default.' 5 | 6 | s.description = <<-DESC 7 | KBNumberPad is a customizable number pad as replacement of default. 8 | DESC 9 | 10 | s.homepage = 'https://github.com/kbiakov/KBNumberPad' 11 | s.screenshots = 'https://s21.postimg.org/w7aup8887/2017-05-14_20.29.02.png', 'https://s16.postimg.org/6pmpy72ut/2017-05-14_20.51.04.png', 'https://s3.postimg.org/mah7jtcmr/2017-05-14_20.59.17.png' 12 | s.license = { :type => 'Apache 2.0', :file => 'LICENSE' } 13 | s.author = { 'Kirill Biakov' => 'kiakov@gmail.com' } 14 | s.source = { :git => 'https://github.com/kbiakov/KBNumberPad.git', :tag => s.version.to_s } 15 | 16 | s.ios.deployment_target = '9.0' 17 | 18 | s.source_files = 'KBNumberPad/Classes/**/*' 19 | 20 | s.resources = 'KBNumberPad/Assets/*.xcassets' 21 | 22 | # s.resource_bundles = { 23 | # 'KBNumberPad' => [ 24 | # 'Resources/**/*.{png}', 25 | # 'Pod/**/*.xib' 26 | # ] 27 | # } 28 | 29 | s.frameworks = 'UIKit' 30 | end 31 | -------------------------------------------------------------------------------- /KBNumberPad/Assets/Assets.xcassets/ClearSymbolFilledIcon.imageset/ClearSymbolFilledIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kbiakov/KBNumberPad/6894e7b6cc73756f345389a74c754b244be417b0/KBNumberPad/Assets/Assets.xcassets/ClearSymbolFilledIcon.imageset/ClearSymbolFilledIcon@2x.png -------------------------------------------------------------------------------- /KBNumberPad/Assets/Assets.xcassets/ClearSymbolFilledIcon.imageset/ClearSymbolFilledIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kbiakov/KBNumberPad/6894e7b6cc73756f345389a74c754b244be417b0/KBNumberPad/Assets/Assets.xcassets/ClearSymbolFilledIcon.imageset/ClearSymbolFilledIcon@3x.png -------------------------------------------------------------------------------- /KBNumberPad/Assets/Assets.xcassets/ClearSymbolFilledIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "ClearSymbolFilledIcon@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "ClearSymbolFilledIcon@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /KBNumberPad/Assets/Assets.xcassets/ClearSymbolIcon.imageset/ClearSymbolIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kbiakov/KBNumberPad/6894e7b6cc73756f345389a74c754b244be417b0/KBNumberPad/Assets/Assets.xcassets/ClearSymbolIcon.imageset/ClearSymbolIcon@2x.png -------------------------------------------------------------------------------- /KBNumberPad/Assets/Assets.xcassets/ClearSymbolIcon.imageset/ClearSymbolIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kbiakov/KBNumberPad/6894e7b6cc73756f345389a74c754b244be417b0/KBNumberPad/Assets/Assets.xcassets/ClearSymbolIcon.imageset/ClearSymbolIcon@3x.png -------------------------------------------------------------------------------- /KBNumberPad/Assets/Assets.xcassets/ClearSymbolIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "ClearSymbolIcon@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "ClearSymbolIcon@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /KBNumberPad/Assets/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /KBNumberPad/Classes/KBNumberPad.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KBNumberPad.swift 3 | // Pods 4 | // 5 | // Created by Kirill Biakov on 01/21/2017. 6 | // Copyright (c) 2017 Kirill Biakov. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | // MARK: - Delegate 13 | 14 | public protocol KBNumberPadDelegate { 15 | func onNumberClicked(numberPad: KBNumberPad, number: Int); 16 | func onDoneClicked(numberPad: KBNumberPad); 17 | func onClearClicked(numberPad: KBNumberPad); 18 | } 19 | 20 | // MARK: - View 21 | 22 | public class KBNumberPad: UIView { 23 | 24 | private static let nibName = "KBNumberPad" 25 | private static let clearSymbolIconName = "ClearSymbolIcon" 26 | private static let clearSymbolFilledIconName = "ClearSymbolFilledIcon" 27 | 28 | private static let estimatedWidth = Int(UIScreen.main.bounds.width) 29 | private static let estimatedHeight = 250 30 | 31 | @IBOutlet var containerView: UIView! 32 | @IBOutlet var numberButtons: [UIButton]! 33 | @IBOutlet var doneButton: UIButton! 34 | @IBOutlet var clearButton: UIButton! 35 | 36 | public var delegate: KBNumberPadDelegate? 37 | 38 | // MARK: - Init 39 | 40 | convenience init() { 41 | self.init(frame: KBNumberPad.defaultRect()) 42 | } 43 | 44 | override public init(frame: CGRect) { 45 | super.init(frame: frame) 46 | setupViewFromXib() 47 | } 48 | 49 | required public init?(coder aDecoder: NSCoder) { 50 | super.init(coder: aDecoder) 51 | setupViewFromXib() 52 | } 53 | 54 | deinit { 55 | delegate = nil 56 | } 57 | 58 | private func setupViewFromXib() { 59 | let nib = UINib(nibName: KBNumberPad.nibName, bundle: bundle()) 60 | .instantiate(withOwner: self, options: nil) 61 | 62 | let view = nib.first as! UIView 63 | view.frame = bounds 64 | view.autoresizingMask = [.flexibleWidth, .flexibleHeight] 65 | addSubview(view) 66 | } 67 | 68 | fileprivate func loadIcon(name: String) -> UIImage? { 69 | let image = UIImage(named: name, in: bundle(), compatibleWith: nil) 70 | let colorable = UIImageRenderingMode.alwaysTemplate 71 | return image?.withRenderingMode(colorable) 72 | } 73 | 74 | private static func defaultRect() -> CGRect { 75 | return CGRect(x: 0, 76 | y: 0, 77 | width: KBNumberPad.estimatedWidth, 78 | height: KBNumberPad.estimatedHeight) 79 | } 80 | 81 | private func bundle() -> Bundle { 82 | return Bundle(for: type(of: self)) 83 | } 84 | 85 | // MARK: - Public methods 86 | 87 | public func setDelimiterColor(_ color: UIColor) { 88 | containerView.backgroundColor = color 89 | } 90 | 91 | public func setButtonsColor(_ color: UIColor) { 92 | setNumberButtonsColor(color) 93 | setDoneButtonColor(color) 94 | setClearButtonColor(color) 95 | } 96 | 97 | public func setButtonsBackgroundColor(_ color: UIColor) { 98 | [numberButtons, [doneButton, clearButton]].joined().forEach { 99 | $0.backgroundColor = color 100 | } 101 | } 102 | 103 | // - Number buttons 104 | 105 | public func setNumberButtonsColor(_ color: UIColor) { 106 | numberButtons.forEach { 107 | $0.setTitleColor(color, for: UIControlState.normal) 108 | } 109 | } 110 | 111 | public func setNumberButtonsFont(_ font: UIFont) { 112 | numberButtons.forEach { 113 | $0.titleLabel?.font = font 114 | } 115 | } 116 | 117 | // - Done button 118 | 119 | public func setDoneButtonColor(_ color: UIColor) { 120 | doneButton.setTitleColor(color, for: UIControlState.normal) 121 | } 122 | 123 | public func setDoneButtonFont(_ font: UIFont) { 124 | doneButton.titleLabel?.font = font 125 | } 126 | 127 | public func setDoneButtonTitle(_ title: String) { 128 | doneButton.titleLabel?.text = title 129 | } 130 | 131 | public func setDoneButtonBackgroundColor(_ color: UIColor) { 132 | doneButton.backgroundColor = color 133 | } 134 | 135 | // - Clear button 136 | 137 | public func setClearButtonColor(_ color: UIColor) { 138 | clearButton.tintColor = color 139 | } 140 | 141 | public func setClearButtonImage(_ image: UIImage) { 142 | clearButton.imageView?.image = image 143 | } 144 | 145 | public func setClearButtonBackgroundColor(_ color: UIColor) { 146 | clearButton.backgroundColor = color 147 | } 148 | 149 | public func resetClearButtonImage(isFilled: Bool = false) { 150 | let iconName = isFilled ? 151 | KBNumberPad.clearSymbolFilledIconName : 152 | KBNumberPad.clearSymbolIconName 153 | 154 | let image = loadIcon(name: iconName) 155 | 156 | setClearButtonImage(image!) 157 | } 158 | 159 | // MARK: - IBActions 160 | 161 | @IBAction func onNumberClicked(_ sender: UIButton) { 162 | let number = Int((sender.titleLabel?.text)!) 163 | delegate?.onNumberClicked(numberPad: self, number: number!) 164 | } 165 | 166 | @IBAction func onDoneClicked(_ sender: UIButton) { 167 | delegate?.onDoneClicked(numberPad: self) 168 | } 169 | 170 | @IBAction func onClearClicked(_ sender: UIButton) { 171 | delegate?.onClearClicked(numberPad: self) 172 | } 173 | } 174 | -------------------------------------------------------------------------------- /KBNumberPad/Classes/KBNumberPad.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 50 | 61 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 89 | 100 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 128 | 139 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 167 | 178 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KBNumberPad (iOS) 2 | 3 | [![CI Status](http://img.shields.io/travis/kbiakov/KBNumberPad.svg?style=flat)](https://travis-ci.org/kbiakov/KBNumberPad) 4 | [![Version](https://img.shields.io/cocoapods/v/KBNumberPad.svg?style=flat)](http://cocoapods.org/pods/KBNumberPad) 5 | [![License](https://img.shields.io/cocoapods/l/KBNumberPad.svg?style=flat)](http://cocoapods.org/pods/KBNumberPad) 6 | [![Platform](https://img.shields.io/cocoapods/p/KBNumberPad.svg?style=flat)](http://cocoapods.org/pods/KBNumberPad) 7 | 8 | KBNumberPad is a customizable number pad as replacement of default. 9 | 10 | ## Example 11 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 12 | 13 | ## Requirements 14 | - Xcode 8.0+ 15 | - iOS 9.0+ 16 | - Swift 3.0+ 17 | 18 | ## Setup 19 | 20 | ### CocoaPods 21 | KBNumberPad is available through [CocoaPods](http://cocoapods.org), dependency manager for Cocoa projects. To install it, run the command: 22 | ```bash 23 | $ gem install cocoapods 24 | ``` 25 | 26 | To integrate KBNumberPad into your Xcode project using CocoaPods, specify it in your `Podfile`: 27 | ```ruby 28 | source 'https://github.com/CocoaPods/Specs.git' 29 | platform :ios, '9.0' 30 | use_frameworks! 31 | 32 | target '' do 33 | pod 'KBNumberPad', '~> 1.0.1' 34 | end 35 | ``` 36 | 37 | Then, run the following command: 38 | ```bash 39 | $ pod install 40 | ``` 41 | 42 | ## Usage 43 | 44 | 1. Create input view (and customize, see section below): 45 | ```Swift 46 | let numberPad = KBNumberPad() 47 | ``` 48 | 49 | 2. Set as input view for your text field (or other): 50 | ```Swift 51 | textField.inputView = numberPad 52 | ``` 53 | 54 | 3. Set delegate: 55 | ```Swift 56 | numberPad.delegate = self 57 | ``` 58 | 59 | 4. Define behavior of 3 callbacks: 60 | ```Swift 61 | func onNumberClicked(numberPad: KBNumberPad, number: Int) {} 62 | func onDoneClicked(numberPad: KBNumberPad) {} 63 | func onClearClicked(numberPad: KBNumberPad) {} 64 | ``` 65 | 66 | ### Customization 67 | You can customize base components of this number pad view as follows: 68 | ```Swift 69 | numberPad.setDelimiterColor(UIColor.lightGray) 70 | numberPad.setButtonsColor(UIColor.black) 71 | numberPad.setButtonsBackgroundColor(UIColor.white) 72 | ``` 73 | 74 | This snippet shows that all buttons grouped, but there are methods to do setup separately like: 75 | ```Swift 76 | numberPad.setNumberButtonsColor(UIColor.black) 77 | numberPad.setClearButtonColor(UIColor.darkGray) 78 | numberPad.setDoneButtonColor(UIColor.darkGray) 79 | ``` 80 | 81 | There is params to customize: it's __color__ of grouped or all buttons, __font__ & __background__. 82 | Also you can change the __icon__ for clear button. 83 | 84 | ## Screenshots 85 | [![2017-05-14_20.29.02.png](https://s3.postimg.org/r1fswvhg3/2017-05-14_20.29.02.png)](https://postimg.org/image/7wcjn42rz/) 86 | [![2017-05-14_20.51.04.png](https://s13.postimg.org/f7akftz3b/2017-05-14_20.51.04.png)](https://postimg.org/image/qwek3sq1v/) 87 | [![2017-05-14_20.59.17.png](https://s12.postimg.org/518601cm5/2017-05-14_20.59.17.png)](https://postimg.org/image/jx6p7mo0p/) 88 | 89 | ## Author 90 | ### [Kirill Biakov](https://github.com/kbiakov) 91 | 92 | ## License 93 | KBNumberPad is available under the [Apache License 2.0](https://github.com/kbiakov/KBNumberPad/blob/master/LICENSE) license. 94 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------