├── .gitignore ├── .swift-version ├── .travis.yml ├── Example ├── .swift-version ├── KKStringValidator.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── KKStringValidator-Example.xcscheme ├── KKStringValidator.xcworkspace │ └── contents.xcworkspacedata ├── KKStringValidator │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── KKStringValidator.podspec.json │ ├── Manifest.lock │ └── Pods.xcodeproj │ │ └── project.pbxproj └── Tests │ ├── Info.plist │ └── Tests.swift ├── KKStringValidator.podspec ├── KKStringValidator ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Criterias.swift │ ├── Extensions.swift │ ├── StringValidator.swift │ └── UITextFieldExtension.swift ├── LICENSE ├── README.md └── _Pods.xcodeproj /.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 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /.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: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/KKStringValidator.xcworkspace -scheme KKStringValidator-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /Example/KKStringValidator.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 41C6A3CF6E59015EB3858051 /* Pods_KKStringValidator_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B180537057AAA1EFEB3CD2E8 /* Pods_KKStringValidator_Tests.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | 9C30FF329E63237EB8A574A7 /* Pods_KKStringValidator_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9B47BB7CE3E3DCAE9E7D3AAB /* Pods_KKStringValidator_Example.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 = KKStringValidator; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 19116D50BCBBF22A948CF22F /* Pods-KKStringValidator_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KKStringValidator_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-KKStringValidator_Example/Pods-KKStringValidator_Example.release.xcconfig"; sourceTree = ""; }; 32 | 4036CCBE771C3336ADAAF9FE /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 33 | 4F34D058E184B896B7E735D0 /* Pods-KKStringValidator_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KKStringValidator_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-KKStringValidator_Tests/Pods-KKStringValidator_Tests.release.xcconfig"; sourceTree = ""; }; 34 | 607FACD01AFB9204008FA782 /* KKStringValidator_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KKStringValidator_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 38 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 39 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 40 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 41 | 607FACE51AFB9204008FA782 /* KKStringValidator_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KKStringValidator_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 44 | 9B47BB7CE3E3DCAE9E7D3AAB /* Pods_KKStringValidator_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KKStringValidator_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | B180537057AAA1EFEB3CD2E8 /* Pods_KKStringValidator_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KKStringValidator_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | BF3501943ADE08CA26AAF7E9 /* Pods-KKStringValidator_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KKStringValidator_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KKStringValidator_Tests/Pods-KKStringValidator_Tests.debug.xcconfig"; sourceTree = ""; }; 47 | D3A49EC64DDD80DD6A059183 /* KKStringValidator.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = KKStringValidator.podspec; path = ../KKStringValidator.podspec; sourceTree = ""; }; 48 | E9394781AD6398363F874869 /* Pods-KKStringValidator_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KKStringValidator_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KKStringValidator_Example/Pods-KKStringValidator_Example.debug.xcconfig"; sourceTree = ""; }; 49 | FEBC092D47CD9573FBA8577B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 9C30FF329E63237EB8A574A7 /* Pods_KKStringValidator_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 41C6A3CF6E59015EB3858051 /* Pods_KKStringValidator_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 30F8106709278A5370BAD4A6 /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 9B47BB7CE3E3DCAE9E7D3AAB /* Pods_KKStringValidator_Example.framework */, 76 | B180537057AAA1EFEB3CD2E8 /* Pods_KKStringValidator_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 607FACC71AFB9204008FA782 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 85 | 607FACD21AFB9204008FA782 /* Example for KKStringValidator */, 86 | 607FACE81AFB9204008FA782 /* Tests */, 87 | 607FACD11AFB9204008FA782 /* Products */, 88 | 819F4D9D2A831132F217F898 /* Pods */, 89 | 30F8106709278A5370BAD4A6 /* Frameworks */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 607FACD11AFB9204008FA782 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD01AFB9204008FA782 /* KKStringValidator_Example.app */, 97 | 607FACE51AFB9204008FA782 /* KKStringValidator_Tests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 607FACD21AFB9204008FA782 /* Example for KKStringValidator */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 106 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 107 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 108 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 109 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 110 | 607FACD31AFB9204008FA782 /* Supporting Files */, 111 | ); 112 | name = "Example for KKStringValidator"; 113 | path = KKStringValidator; 114 | sourceTree = ""; 115 | }; 116 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 607FACD41AFB9204008FA782 /* Info.plist */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 607FACE81AFB9204008FA782 /* Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 128 | 607FACE91AFB9204008FA782 /* Supporting Files */, 129 | ); 130 | path = Tests; 131 | sourceTree = ""; 132 | }; 133 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACEA1AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | D3A49EC64DDD80DD6A059183 /* KKStringValidator.podspec */, 145 | FEBC092D47CD9573FBA8577B /* README.md */, 146 | 4036CCBE771C3336ADAAF9FE /* LICENSE */, 147 | ); 148 | name = "Podspec Metadata"; 149 | sourceTree = ""; 150 | }; 151 | 819F4D9D2A831132F217F898 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | E9394781AD6398363F874869 /* Pods-KKStringValidator_Example.debug.xcconfig */, 155 | 19116D50BCBBF22A948CF22F /* Pods-KKStringValidator_Example.release.xcconfig */, 156 | BF3501943ADE08CA26AAF7E9 /* Pods-KKStringValidator_Tests.debug.xcconfig */, 157 | 4F34D058E184B896B7E735D0 /* Pods-KKStringValidator_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* KKStringValidator_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KKStringValidator_Example" */; 168 | buildPhases = ( 169 | 4C24123F1EDDA76E055D9A0D /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | F2FD506FF7409A3603A968E0 /* [CP] Embed Pods Frameworks */, 174 | 522A37B3317A60618A55DB60 /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = KKStringValidator_Example; 181 | productName = KKStringValidator; 182 | productReference = 607FACD01AFB9204008FA782 /* KKStringValidator_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* KKStringValidator_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KKStringValidator_Tests" */; 188 | buildPhases = ( 189 | AD1FF5E43E1B75E3B68C77AB /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | 4ACA675FB26793F575131603 /* [CP] Embed Pods Frameworks */, 194 | B033D5AC7FBFF95D21306B65 /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = KKStringValidator_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* KKStringValidator_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 = 0720; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | }; 219 | 607FACE41AFB9204008FA782 = { 220 | CreatedOnToolsVersion = 6.3.1; 221 | TestTargetID = 607FACCF1AFB9204008FA782; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KKStringValidator" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = English; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* KKStringValidator_Example */, 239 | 607FACE41AFB9204008FA782 /* KKStringValidator_Tests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 607FACCE1AFB9204008FA782 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 250 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 251 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 607FACE31AFB9204008FA782 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXShellScriptBuildPhase section */ 265 | 4ACA675FB26793F575131603 /* [CP] Embed Pods Frameworks */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | ); 272 | name = "[CP] Embed Pods Frameworks"; 273 | outputPaths = ( 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | shellPath = /bin/sh; 277 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KKStringValidator_Tests/Pods-KKStringValidator_Tests-frameworks.sh\"\n"; 278 | showEnvVarsInLog = 0; 279 | }; 280 | 4C24123F1EDDA76E055D9A0D /* [CP] Check Pods Manifest.lock */ = { 281 | isa = PBXShellScriptBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ); 285 | inputPaths = ( 286 | ); 287 | name = "[CP] Check Pods Manifest.lock"; 288 | outputPaths = ( 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | shellPath = /bin/sh; 292 | shellScript = "diff \"${PODS_ROOT}/../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"; 293 | showEnvVarsInLog = 0; 294 | }; 295 | 522A37B3317A60618A55DB60 /* [CP] Copy Pods Resources */ = { 296 | isa = PBXShellScriptBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | inputPaths = ( 301 | ); 302 | name = "[CP] Copy Pods Resources"; 303 | outputPaths = ( 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | shellPath = /bin/sh; 307 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KKStringValidator_Example/Pods-KKStringValidator_Example-resources.sh\"\n"; 308 | showEnvVarsInLog = 0; 309 | }; 310 | AD1FF5E43E1B75E3B68C77AB /* [CP] Check Pods Manifest.lock */ = { 311 | isa = PBXShellScriptBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | ); 315 | inputPaths = ( 316 | ); 317 | name = "[CP] Check Pods Manifest.lock"; 318 | outputPaths = ( 319 | ); 320 | runOnlyForDeploymentPostprocessing = 0; 321 | shellPath = /bin/sh; 322 | shellScript = "diff \"${PODS_ROOT}/../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"; 323 | showEnvVarsInLog = 0; 324 | }; 325 | B033D5AC7FBFF95D21306B65 /* [CP] Copy Pods Resources */ = { 326 | isa = PBXShellScriptBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | ); 330 | inputPaths = ( 331 | ); 332 | name = "[CP] Copy Pods Resources"; 333 | outputPaths = ( 334 | ); 335 | runOnlyForDeploymentPostprocessing = 0; 336 | shellPath = /bin/sh; 337 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KKStringValidator_Tests/Pods-KKStringValidator_Tests-resources.sh\"\n"; 338 | showEnvVarsInLog = 0; 339 | }; 340 | F2FD506FF7409A3603A968E0 /* [CP] Embed Pods Frameworks */ = { 341 | isa = PBXShellScriptBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | ); 345 | inputPaths = ( 346 | ); 347 | name = "[CP] Embed Pods Frameworks"; 348 | outputPaths = ( 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | shellPath = /bin/sh; 352 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KKStringValidator_Example/Pods-KKStringValidator_Example-frameworks.sh\"\n"; 353 | showEnvVarsInLog = 0; 354 | }; 355 | /* End PBXShellScriptBuildPhase section */ 356 | 357 | /* Begin PBXSourcesBuildPhase section */ 358 | 607FACCC1AFB9204008FA782 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 363 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 607FACE11AFB9204008FA782 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | /* End PBXSourcesBuildPhase section */ 376 | 377 | /* Begin PBXTargetDependency section */ 378 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 379 | isa = PBXTargetDependency; 380 | target = 607FACCF1AFB9204008FA782 /* KKStringValidator_Example */; 381 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 382 | }; 383 | /* End PBXTargetDependency section */ 384 | 385 | /* Begin PBXVariantGroup section */ 386 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 387 | isa = PBXVariantGroup; 388 | children = ( 389 | 607FACDA1AFB9204008FA782 /* Base */, 390 | ); 391 | name = Main.storyboard; 392 | sourceTree = ""; 393 | }; 394 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 395 | isa = PBXVariantGroup; 396 | children = ( 397 | 607FACDF1AFB9204008FA782 /* Base */, 398 | ); 399 | name = LaunchScreen.xib; 400 | sourceTree = ""; 401 | }; 402 | /* End PBXVariantGroup section */ 403 | 404 | /* Begin XCBuildConfiguration section */ 405 | 607FACED1AFB9204008FA782 /* Debug */ = { 406 | isa = XCBuildConfiguration; 407 | buildSettings = { 408 | ALWAYS_SEARCH_USER_PATHS = NO; 409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 410 | CLANG_CXX_LIBRARY = "libc++"; 411 | CLANG_ENABLE_MODULES = YES; 412 | CLANG_ENABLE_OBJC_ARC = YES; 413 | CLANG_WARN_BOOL_CONVERSION = YES; 414 | CLANG_WARN_CONSTANT_CONVERSION = YES; 415 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 416 | CLANG_WARN_EMPTY_BODY = YES; 417 | CLANG_WARN_ENUM_CONVERSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 420 | CLANG_WARN_UNREACHABLE_CODE = YES; 421 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 423 | COPY_PHASE_STRIP = NO; 424 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | ENABLE_TESTABILITY = YES; 427 | GCC_C_LANGUAGE_STANDARD = gnu99; 428 | GCC_DYNAMIC_NO_PIC = NO; 429 | GCC_NO_COMMON_BLOCKS = YES; 430 | GCC_OPTIMIZATION_LEVEL = 0; 431 | GCC_PREPROCESSOR_DEFINITIONS = ( 432 | "DEBUG=1", 433 | "$(inherited)", 434 | ); 435 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 436 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 437 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 438 | GCC_WARN_UNDECLARED_SELECTOR = YES; 439 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 440 | GCC_WARN_UNUSED_FUNCTION = YES; 441 | GCC_WARN_UNUSED_VARIABLE = YES; 442 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 443 | MTL_ENABLE_DEBUG_INFO = YES; 444 | ONLY_ACTIVE_ARCH = YES; 445 | SDKROOT = iphoneos; 446 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 447 | }; 448 | name = Debug; 449 | }; 450 | 607FACEE1AFB9204008FA782 /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | ALWAYS_SEARCH_USER_PATHS = NO; 454 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 455 | CLANG_CXX_LIBRARY = "libc++"; 456 | CLANG_ENABLE_MODULES = YES; 457 | CLANG_ENABLE_OBJC_ARC = YES; 458 | CLANG_WARN_BOOL_CONVERSION = YES; 459 | CLANG_WARN_CONSTANT_CONVERSION = YES; 460 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 461 | CLANG_WARN_EMPTY_BODY = YES; 462 | CLANG_WARN_ENUM_CONVERSION = YES; 463 | CLANG_WARN_INT_CONVERSION = YES; 464 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 465 | CLANG_WARN_UNREACHABLE_CODE = YES; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 468 | COPY_PHASE_STRIP = NO; 469 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 470 | ENABLE_NS_ASSERTIONS = NO; 471 | ENABLE_STRICT_OBJC_MSGSEND = YES; 472 | GCC_C_LANGUAGE_STANDARD = gnu99; 473 | GCC_NO_COMMON_BLOCKS = YES; 474 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 475 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 476 | GCC_WARN_UNDECLARED_SELECTOR = YES; 477 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 478 | GCC_WARN_UNUSED_FUNCTION = YES; 479 | GCC_WARN_UNUSED_VARIABLE = YES; 480 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 481 | MTL_ENABLE_DEBUG_INFO = NO; 482 | SDKROOT = iphoneos; 483 | VALIDATE_PRODUCT = YES; 484 | }; 485 | name = Release; 486 | }; 487 | 607FACF01AFB9204008FA782 /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | baseConfigurationReference = E9394781AD6398363F874869 /* Pods-KKStringValidator_Example.debug.xcconfig */; 490 | buildSettings = { 491 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 492 | INFOPLIST_FILE = KKStringValidator/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 494 | MODULE_NAME = ExampleApp; 495 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | }; 498 | name = Debug; 499 | }; 500 | 607FACF11AFB9204008FA782 /* Release */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 19116D50BCBBF22A948CF22F /* Pods-KKStringValidator_Example.release.xcconfig */; 503 | buildSettings = { 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | INFOPLIST_FILE = KKStringValidator/Info.plist; 506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 507 | MODULE_NAME = ExampleApp; 508 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | }; 511 | name = Release; 512 | }; 513 | 607FACF31AFB9204008FA782 /* Debug */ = { 514 | isa = XCBuildConfiguration; 515 | baseConfigurationReference = BF3501943ADE08CA26AAF7E9 /* Pods-KKStringValidator_Tests.debug.xcconfig */; 516 | buildSettings = { 517 | FRAMEWORK_SEARCH_PATHS = ( 518 | "$(SDKROOT)/Developer/Library/Frameworks", 519 | "$(inherited)", 520 | ); 521 | GCC_PREPROCESSOR_DEFINITIONS = ( 522 | "DEBUG=1", 523 | "$(inherited)", 524 | ); 525 | INFOPLIST_FILE = Tests/Info.plist; 526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 527 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 528 | PRODUCT_NAME = "$(TARGET_NAME)"; 529 | }; 530 | name = Debug; 531 | }; 532 | 607FACF41AFB9204008FA782 /* Release */ = { 533 | isa = XCBuildConfiguration; 534 | baseConfigurationReference = 4F34D058E184B896B7E735D0 /* Pods-KKStringValidator_Tests.release.xcconfig */; 535 | buildSettings = { 536 | FRAMEWORK_SEARCH_PATHS = ( 537 | "$(SDKROOT)/Developer/Library/Frameworks", 538 | "$(inherited)", 539 | ); 540 | INFOPLIST_FILE = Tests/Info.plist; 541 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 542 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 543 | PRODUCT_NAME = "$(TARGET_NAME)"; 544 | }; 545 | name = Release; 546 | }; 547 | /* End XCBuildConfiguration section */ 548 | 549 | /* Begin XCConfigurationList section */ 550 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KKStringValidator" */ = { 551 | isa = XCConfigurationList; 552 | buildConfigurations = ( 553 | 607FACED1AFB9204008FA782 /* Debug */, 554 | 607FACEE1AFB9204008FA782 /* Release */, 555 | ); 556 | defaultConfigurationIsVisible = 0; 557 | defaultConfigurationName = Release; 558 | }; 559 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KKStringValidator_Example" */ = { 560 | isa = XCConfigurationList; 561 | buildConfigurations = ( 562 | 607FACF01AFB9204008FA782 /* Debug */, 563 | 607FACF11AFB9204008FA782 /* Release */, 564 | ); 565 | defaultConfigurationIsVisible = 0; 566 | defaultConfigurationName = Release; 567 | }; 568 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KKStringValidator_Tests" */ = { 569 | isa = XCConfigurationList; 570 | buildConfigurations = ( 571 | 607FACF31AFB9204008FA782 /* Debug */, 572 | 607FACF41AFB9204008FA782 /* Release */, 573 | ); 574 | defaultConfigurationIsVisible = 0; 575 | defaultConfigurationName = Release; 576 | }; 577 | /* End XCConfigurationList section */ 578 | }; 579 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 580 | } 581 | -------------------------------------------------------------------------------- /Example/KKStringValidator.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/KKStringValidator.xcodeproj/xcshareddata/xcschemes/KKStringValidator-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/KKStringValidator.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/KKStringValidator/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // KKStringValidator 4 | // 5 | // Created by k_krizhanovskii on 11/23/2016. 6 | // Copyright (c) 2016 k_krizhanovskii. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/KKStringValidator/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/KKStringValidator/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 | -------------------------------------------------------------------------------- /Example/KKStringValidator/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/KKStringValidator/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/KKStringValidator/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // KKStringValidator 4 | // 5 | // Created by k_krizhanovskii on 11/23/2016. 6 | // Copyright (c) 2016 k_krizhanovskii. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | } 16 | 17 | override func didReceiveMemoryWarning() { 18 | super.didReceiveMemoryWarning() 19 | // Dispose of any resources that can be recreated. 20 | } 21 | 22 | } 23 | 24 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'KKStringValidator_Example' do 4 | pod 'KKStringValidator', :path => '../' 5 | 6 | target 'KKStringValidator_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KKStringValidator (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - KKStringValidator (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KKStringValidator: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | KKStringValidator: 77ded8236144b39cc63a1c21e2552a43de516608 13 | 14 | PODFILE CHECKSUM: fc550b792f909ce57ce450171ecb8504243fb256 15 | 16 | COCOAPODS: 1.1.0.rc.2 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/KKStringValidator.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "KKStringValidator", 3 | "version": "0.1.1", 4 | "summary": "Library for easy and fastest string validation based on сciterias.", 5 | "description": "For project to project you must validate some input fields, strings, etc, for thay accept some criterias (like length, exist uppercase char, exist number, etc).\nKKStringValidator helps to check string for needed criterias to be accepted.", 6 | "homepage": "https://github.com/krizhanovskii", 7 | "license": "MIT", 8 | "authors": { 9 | "k.krizhanovskii": "k.krizhanovskii@gmail.com" 10 | }, 11 | "source": { 12 | "git": "https://github.com/krizhanovskii/KKStringValidator.git", 13 | "tag": "0.1.1" 14 | }, 15 | "platforms": { 16 | "ios": "9.0" 17 | }, 18 | "source_files": "KKStringValidator/Classes/**/*" 19 | } 20 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KKStringValidator (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - KKStringValidator (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KKStringValidator: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | KKStringValidator: 77ded8236144b39cc63a1c21e2552a43de516608 13 | 14 | PODFILE CHECKSUM: fc550b792f909ce57ce450171ecb8504243fb256 15 | 16 | COCOAPODS: 1.1.0.rc.2 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 | 035A49C7D941DF680D0E818EAF761A76 /* Pods-KKStringValidator_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 669A3B8D5A532AC5F323E90222D6D9A3 /* Pods-KKStringValidator_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 0A126F19F65DD437901B0541A87D1A54 /* KKStringValidator-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 27AEF8113D80C73BE77D39157EB24433 /* KKStringValidator-dummy.m */; }; 12 | 0E4E14CC0817BC4E5D3AF4D2D3F45D78 /* Pods-KKStringValidator_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AE82D415A4CFC99DEF6C546C80436A05 /* Pods-KKStringValidator_Example-dummy.m */; }; 13 | 5121EE8AD0E02E5C7492321C60E60C3F /* Pods-KKStringValidator_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = AD469B143F00744F943A5F5F06FE6BF6 /* Pods-KKStringValidator_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 78CF4B97B7A76FF046C5EFFC6D6EE470 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 15 | 845BA9DE1DE702E200F7B883 /* UITextFieldExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 845BA9DD1DE702E200F7B883 /* UITextFieldExtension.swift */; }; 16 | 845BA9E01DE7074A00F7B883 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 845BA9DF1DE7074A00F7B883 /* Extensions.swift */; }; 17 | 84C25C4F1DE5A77B005E1DBC /* StringValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84C25C4E1DE5A77B005E1DBC /* StringValidator.swift */; }; 18 | 84C25C511DE5A7A4005E1DBC /* Criterias.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84C25C501DE5A7A4005E1DBC /* Criterias.swift */; }; 19 | 8D0C3F19EBC469A0645BA52A04D9BE5D /* Pods-KKStringValidator_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 96725B4548AB319FA586D92AE6956DA4 /* Pods-KKStringValidator_Tests-dummy.m */; }; 20 | AFA16360E77F3ED481DEF080AC3AFBAE /* KKStringValidator-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2DBB63A99AF0F1A73349237137E135B4 /* KKStringValidator-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | BB8432EAEEDB8B246C2DA99BD1E6EA98 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 22 | CED966B9A501638014573589607ED88A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 5F7A734B3798AAF6C3C3D7EAC7098ACB /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 6C3AAFD7D8EB2037970F5F65CA306195; 31 | remoteInfo = KKStringValidator; 32 | }; 33 | /* End PBXContainerItemProxy section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | 10442E6A2BF75500EB8488CC9CEDEBA4 /* Pods-KKStringValidator_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KKStringValidator_Example-resources.sh"; sourceTree = ""; }; 37 | 1B33A9715CE1D7044C0785C2344F1B54 /* Pods-KKStringValidator_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KKStringValidator_Tests-acknowledgements.plist"; sourceTree = ""; }; 38 | 203110159ECD31E20579DFC3A25E5A1E /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 27AEF8113D80C73BE77D39157EB24433 /* KKStringValidator-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "KKStringValidator-dummy.m"; sourceTree = ""; }; 40 | 2DBB63A99AF0F1A73349237137E135B4 /* KKStringValidator-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KKStringValidator-umbrella.h"; sourceTree = ""; }; 41 | 2E3C336DCD526EAAC755013AEDCCFD60 /* KKStringValidator.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = KKStringValidator.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 31135B4E830512613290A1611315BC65 /* Pods-KKStringValidator_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KKStringValidator_Tests.release.xcconfig"; sourceTree = ""; }; 43 | 3D4CAFA0668A62556940C9AA7CB4B084 /* Pods-KKStringValidator_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KKStringValidator_Example-acknowledgements.plist"; sourceTree = ""; }; 44 | 3F8D1425A2DC7D98E691FC70DFE30552 /* Pods-KKStringValidator_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KKStringValidator_Tests-resources.sh"; sourceTree = ""; }; 45 | 45CB0EBFAE3E97428144D6EFDA538F78 /* KKStringValidator.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = KKStringValidator.modulemap; sourceTree = ""; }; 46 | 566BF74247F54D3969E134B957CF6BCA /* Pods-KKStringValidator_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KKStringValidator_Tests-acknowledgements.markdown"; sourceTree = ""; }; 47 | 669A3B8D5A532AC5F323E90222D6D9A3 /* Pods-KKStringValidator_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KKStringValidator_Tests-umbrella.h"; sourceTree = ""; }; 48 | 6C05EFCFBE098B4654DD2FF45FC48677 /* Pods-KKStringValidator_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KKStringValidator_Example-frameworks.sh"; sourceTree = ""; }; 49 | 7E18D13BC82E6A783584BE6B12811A59 /* KKStringValidator-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KKStringValidator-prefix.pch"; sourceTree = ""; }; 50 | 845BA9DD1DE702E200F7B883 /* UITextFieldExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UITextFieldExtension.swift; sourceTree = ""; }; 51 | 845BA9DF1DE7074A00F7B883 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = ""; }; 52 | 84C25C4E1DE5A77B005E1DBC /* StringValidator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StringValidator.swift; sourceTree = ""; }; 53 | 84C25C501DE5A7A4005E1DBC /* Criterias.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Criterias.swift; sourceTree = ""; }; 54 | 8A18AEEB895EB232EC0DDB60A7A9DFE9 /* Pods-KKStringValidator_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KKStringValidator_Tests-frameworks.sh"; sourceTree = ""; }; 55 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 56 | 949529128B2879D4D734E0AACF9362CB /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | 95A7FE8E471397F4C940F754B967A33B /* KKStringValidator.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = KKStringValidator.xcconfig; sourceTree = ""; }; 58 | 96725B4548AB319FA586D92AE6956DA4 /* Pods-KKStringValidator_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KKStringValidator_Tests-dummy.m"; sourceTree = ""; }; 59 | 9B0C9EC81E5AEAE3792383CDF7924457 /* Pods_KKStringValidator_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KKStringValidator_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 9FA5BEE5895E253A4BA8DB8C718057BD /* Pods-KKStringValidator_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KKStringValidator_Example.release.xcconfig"; sourceTree = ""; }; 61 | A6E44334F51B689725F004D25E95759F /* Pods-KKStringValidator_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-KKStringValidator_Example.modulemap"; sourceTree = ""; }; 62 | AD469B143F00744F943A5F5F06FE6BF6 /* Pods-KKStringValidator_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KKStringValidator_Example-umbrella.h"; sourceTree = ""; }; 63 | AE82D415A4CFC99DEF6C546C80436A05 /* Pods-KKStringValidator_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KKStringValidator_Example-dummy.m"; sourceTree = ""; }; 64 | AFC7BAE3E7B009682C6E81F98B4752E6 /* Pods_KKStringValidator_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KKStringValidator_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | BC7C6B3B70E5F572A5FDEBEABFD615DE /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 66 | C5A04DF777675BD62013A59852082B05 /* Pods-KKStringValidator_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KKStringValidator_Example.debug.xcconfig"; sourceTree = ""; }; 67 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 68 | E5B82296AC2E5FBCD46841605A3DDDBB /* Pods-KKStringValidator_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KKStringValidator_Example-acknowledgements.markdown"; sourceTree = ""; }; 69 | E8EC32236BD0246CB2B64A59AC61D7AF /* Pods-KKStringValidator_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KKStringValidator_Tests.debug.xcconfig"; sourceTree = ""; }; 70 | FC8BDFB5BC4681A19676C8BABF8CB23A /* Pods-KKStringValidator_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-KKStringValidator_Tests.modulemap"; sourceTree = ""; }; 71 | /* End PBXFileReference section */ 72 | 73 | /* Begin PBXFrameworksBuildPhase section */ 74 | 2F85A7161BCBE356EF0B2DB745E0E125 /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | 78CF4B97B7A76FF046C5EFFC6D6EE470 /* Foundation.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | D50404867FD9B0123A691974E2C64EBD /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | BB8432EAEEDB8B246C2DA99BD1E6EA98 /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | E596CC63F55AE1F223A936C51AE3E804 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | CED966B9A501638014573589607ED88A /* Foundation.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | /* End PBXFrameworksBuildPhase section */ 99 | 100 | /* Begin PBXGroup section */ 101 | 08C9C47EEAE4C656E466F2E2593DF5D1 /* KKStringValidator */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | FDE456DA0AD756B7554BEF3465FF9E60 /* KKStringValidator */, 105 | CD59938FCB125BDBB0E2836B5BDDFE21 /* Support Files */, 106 | ); 107 | name = KKStringValidator; 108 | path = ../..; 109 | sourceTree = ""; 110 | }; 111 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */, 115 | ); 116 | name = iOS; 117 | sourceTree = ""; 118 | }; 119 | 5C8818065E39D56241E5A48A01B261B1 /* Pods-KKStringValidator_Example */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | BC7C6B3B70E5F572A5FDEBEABFD615DE /* Info.plist */, 123 | A6E44334F51B689725F004D25E95759F /* Pods-KKStringValidator_Example.modulemap */, 124 | E5B82296AC2E5FBCD46841605A3DDDBB /* Pods-KKStringValidator_Example-acknowledgements.markdown */, 125 | 3D4CAFA0668A62556940C9AA7CB4B084 /* Pods-KKStringValidator_Example-acknowledgements.plist */, 126 | AE82D415A4CFC99DEF6C546C80436A05 /* Pods-KKStringValidator_Example-dummy.m */, 127 | 6C05EFCFBE098B4654DD2FF45FC48677 /* Pods-KKStringValidator_Example-frameworks.sh */, 128 | 10442E6A2BF75500EB8488CC9CEDEBA4 /* Pods-KKStringValidator_Example-resources.sh */, 129 | AD469B143F00744F943A5F5F06FE6BF6 /* Pods-KKStringValidator_Example-umbrella.h */, 130 | C5A04DF777675BD62013A59852082B05 /* Pods-KKStringValidator_Example.debug.xcconfig */, 131 | 9FA5BEE5895E253A4BA8DB8C718057BD /* Pods-KKStringValidator_Example.release.xcconfig */, 132 | ); 133 | name = "Pods-KKStringValidator_Example"; 134 | path = "Target Support Files/Pods-KKStringValidator_Example"; 135 | sourceTree = ""; 136 | }; 137 | 7DB346D0F39D3F0E887471402A8071AB = { 138 | isa = PBXGroup; 139 | children = ( 140 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 141 | E670B2902DB5EB2563B5F2669770F36B /* Development Pods */, 142 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 143 | 9ACEEB3655225D19DE9568E6914FA16B /* Products */, 144 | 82D35DAC74608B41DD582C3AB69CA116 /* Targets Support Files */, 145 | ); 146 | sourceTree = ""; 147 | }; 148 | 82D35DAC74608B41DD582C3AB69CA116 /* Targets Support Files */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | 5C8818065E39D56241E5A48A01B261B1 /* Pods-KKStringValidator_Example */, 152 | BC47C88D671220A21D4263B5F0ADAD11 /* Pods-KKStringValidator_Tests */, 153 | ); 154 | name = "Targets Support Files"; 155 | sourceTree = ""; 156 | }; 157 | 9ACEEB3655225D19DE9568E6914FA16B /* Products */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 2E3C336DCD526EAAC755013AEDCCFD60 /* KKStringValidator.framework */, 161 | AFC7BAE3E7B009682C6E81F98B4752E6 /* Pods_KKStringValidator_Example.framework */, 162 | 9B0C9EC81E5AEAE3792383CDF7924457 /* Pods_KKStringValidator_Tests.framework */, 163 | ); 164 | name = Products; 165 | sourceTree = ""; 166 | }; 167 | 9ECADA1AEFB3AEB0940889EE4FE95EF2 /* Classes */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 84C25C4E1DE5A77B005E1DBC /* StringValidator.swift */, 171 | 84C25C501DE5A7A4005E1DBC /* Criterias.swift */, 172 | 845BA9DD1DE702E200F7B883 /* UITextFieldExtension.swift */, 173 | 845BA9DF1DE7074A00F7B883 /* Extensions.swift */, 174 | ); 175 | path = Classes; 176 | sourceTree = ""; 177 | }; 178 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */, 182 | ); 183 | name = Frameworks; 184 | sourceTree = ""; 185 | }; 186 | BC47C88D671220A21D4263B5F0ADAD11 /* Pods-KKStringValidator_Tests */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 203110159ECD31E20579DFC3A25E5A1E /* Info.plist */, 190 | FC8BDFB5BC4681A19676C8BABF8CB23A /* Pods-KKStringValidator_Tests.modulemap */, 191 | 566BF74247F54D3969E134B957CF6BCA /* Pods-KKStringValidator_Tests-acknowledgements.markdown */, 192 | 1B33A9715CE1D7044C0785C2344F1B54 /* Pods-KKStringValidator_Tests-acknowledgements.plist */, 193 | 96725B4548AB319FA586D92AE6956DA4 /* Pods-KKStringValidator_Tests-dummy.m */, 194 | 8A18AEEB895EB232EC0DDB60A7A9DFE9 /* Pods-KKStringValidator_Tests-frameworks.sh */, 195 | 3F8D1425A2DC7D98E691FC70DFE30552 /* Pods-KKStringValidator_Tests-resources.sh */, 196 | 669A3B8D5A532AC5F323E90222D6D9A3 /* Pods-KKStringValidator_Tests-umbrella.h */, 197 | E8EC32236BD0246CB2B64A59AC61D7AF /* Pods-KKStringValidator_Tests.debug.xcconfig */, 198 | 31135B4E830512613290A1611315BC65 /* Pods-KKStringValidator_Tests.release.xcconfig */, 199 | ); 200 | name = "Pods-KKStringValidator_Tests"; 201 | path = "Target Support Files/Pods-KKStringValidator_Tests"; 202 | sourceTree = ""; 203 | }; 204 | CD59938FCB125BDBB0E2836B5BDDFE21 /* Support Files */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 949529128B2879D4D734E0AACF9362CB /* Info.plist */, 208 | 45CB0EBFAE3E97428144D6EFDA538F78 /* KKStringValidator.modulemap */, 209 | 95A7FE8E471397F4C940F754B967A33B /* KKStringValidator.xcconfig */, 210 | 27AEF8113D80C73BE77D39157EB24433 /* KKStringValidator-dummy.m */, 211 | 7E18D13BC82E6A783584BE6B12811A59 /* KKStringValidator-prefix.pch */, 212 | 2DBB63A99AF0F1A73349237137E135B4 /* KKStringValidator-umbrella.h */, 213 | ); 214 | name = "Support Files"; 215 | path = "Example/Pods/Target Support Files/KKStringValidator"; 216 | sourceTree = ""; 217 | }; 218 | E670B2902DB5EB2563B5F2669770F36B /* Development Pods */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 08C9C47EEAE4C656E466F2E2593DF5D1 /* KKStringValidator */, 222 | ); 223 | name = "Development Pods"; 224 | sourceTree = ""; 225 | }; 226 | FDE456DA0AD756B7554BEF3465FF9E60 /* KKStringValidator */ = { 227 | isa = PBXGroup; 228 | children = ( 229 | 9ECADA1AEFB3AEB0940889EE4FE95EF2 /* Classes */, 230 | ); 231 | path = KKStringValidator; 232 | sourceTree = ""; 233 | }; 234 | /* End PBXGroup section */ 235 | 236 | /* Begin PBXHeadersBuildPhase section */ 237 | 2FCD77BA381E656AD3AD4D0E5A951519 /* Headers */ = { 238 | isa = PBXHeadersBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | AFA16360E77F3ED481DEF080AC3AFBAE /* KKStringValidator-umbrella.h in Headers */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | 2FDAA725D6A9151083BA5DF8121343C3 /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 035A49C7D941DF680D0E818EAF761A76 /* Pods-KKStringValidator_Tests-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | D95243E63BE3BAAEFC2F5E8BB09CA09A /* Headers */ = { 254 | isa = PBXHeadersBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 5121EE8AD0E02E5C7492321C60E60C3F /* Pods-KKStringValidator_Example-umbrella.h in Headers */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXHeadersBuildPhase section */ 262 | 263 | /* Begin PBXNativeTarget section */ 264 | 6C3AAFD7D8EB2037970F5F65CA306195 /* KKStringValidator */ = { 265 | isa = PBXNativeTarget; 266 | buildConfigurationList = AD64E137E2177A440A5D6E0B7F9229C6 /* Build configuration list for PBXNativeTarget "KKStringValidator" */; 267 | buildPhases = ( 268 | D7A006E7B5CA25E112F3EEA488C99B05 /* Sources */, 269 | E596CC63F55AE1F223A936C51AE3E804 /* Frameworks */, 270 | 2FCD77BA381E656AD3AD4D0E5A951519 /* Headers */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | ); 276 | name = KKStringValidator; 277 | productName = KKStringValidator; 278 | productReference = 2E3C336DCD526EAAC755013AEDCCFD60 /* KKStringValidator.framework */; 279 | productType = "com.apple.product-type.framework"; 280 | }; 281 | 9EDD41DD3A136A7991551314E03145B1 /* Pods-KKStringValidator_Tests */ = { 282 | isa = PBXNativeTarget; 283 | buildConfigurationList = D936FB8A2C1E11D16919078E24867F02 /* Build configuration list for PBXNativeTarget "Pods-KKStringValidator_Tests" */; 284 | buildPhases = ( 285 | 5E6D73B74E0037FE32501ECC3BD9FA61 /* Sources */, 286 | 2F85A7161BCBE356EF0B2DB745E0E125 /* Frameworks */, 287 | 2FDAA725D6A9151083BA5DF8121343C3 /* Headers */, 288 | ); 289 | buildRules = ( 290 | ); 291 | dependencies = ( 292 | ); 293 | name = "Pods-KKStringValidator_Tests"; 294 | productName = "Pods-KKStringValidator_Tests"; 295 | productReference = 9B0C9EC81E5AEAE3792383CDF7924457 /* Pods_KKStringValidator_Tests.framework */; 296 | productType = "com.apple.product-type.framework"; 297 | }; 298 | A60046E99B2898613CB6502704B66CF4 /* Pods-KKStringValidator_Example */ = { 299 | isa = PBXNativeTarget; 300 | buildConfigurationList = 1E3A2C3415BF730B7457CCEC6F627E2F /* Build configuration list for PBXNativeTarget "Pods-KKStringValidator_Example" */; 301 | buildPhases = ( 302 | EFAD27D4DD4F03AE42520ECB6DBD17E4 /* Sources */, 303 | D50404867FD9B0123A691974E2C64EBD /* Frameworks */, 304 | D95243E63BE3BAAEFC2F5E8BB09CA09A /* Headers */, 305 | ); 306 | buildRules = ( 307 | ); 308 | dependencies = ( 309 | 08DCA3762052DCCA167BBCA8A86AEE55 /* PBXTargetDependency */, 310 | ); 311 | name = "Pods-KKStringValidator_Example"; 312 | productName = "Pods-KKStringValidator_Example"; 313 | productReference = AFC7BAE3E7B009682C6E81F98B4752E6 /* Pods_KKStringValidator_Example.framework */; 314 | productType = "com.apple.product-type.framework"; 315 | }; 316 | /* End PBXNativeTarget section */ 317 | 318 | /* Begin PBXProject section */ 319 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 320 | isa = PBXProject; 321 | attributes = { 322 | LastSwiftUpdateCheck = 0730; 323 | LastUpgradeCheck = 0700; 324 | TargetAttributes = { 325 | 6C3AAFD7D8EB2037970F5F65CA306195 = { 326 | LastSwiftMigration = 0810; 327 | }; 328 | }; 329 | }; 330 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 331 | compatibilityVersion = "Xcode 3.2"; 332 | developmentRegion = English; 333 | hasScannedForEncodings = 0; 334 | knownRegions = ( 335 | en, 336 | ); 337 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 338 | productRefGroup = 9ACEEB3655225D19DE9568E6914FA16B /* Products */; 339 | projectDirPath = ""; 340 | projectRoot = ""; 341 | targets = ( 342 | 6C3AAFD7D8EB2037970F5F65CA306195 /* KKStringValidator */, 343 | A60046E99B2898613CB6502704B66CF4 /* Pods-KKStringValidator_Example */, 344 | 9EDD41DD3A136A7991551314E03145B1 /* Pods-KKStringValidator_Tests */, 345 | ); 346 | }; 347 | /* End PBXProject section */ 348 | 349 | /* Begin PBXSourcesBuildPhase section */ 350 | 5E6D73B74E0037FE32501ECC3BD9FA61 /* Sources */ = { 351 | isa = PBXSourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | 8D0C3F19EBC469A0645BA52A04D9BE5D /* Pods-KKStringValidator_Tests-dummy.m in Sources */, 355 | ); 356 | runOnlyForDeploymentPostprocessing = 0; 357 | }; 358 | D7A006E7B5CA25E112F3EEA488C99B05 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 845BA9E01DE7074A00F7B883 /* Extensions.swift in Sources */, 363 | 0A126F19F65DD437901B0541A87D1A54 /* KKStringValidator-dummy.m in Sources */, 364 | 845BA9DE1DE702E200F7B883 /* UITextFieldExtension.swift in Sources */, 365 | 84C25C511DE5A7A4005E1DBC /* Criterias.swift in Sources */, 366 | 84C25C4F1DE5A77B005E1DBC /* StringValidator.swift in Sources */, 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | EFAD27D4DD4F03AE42520ECB6DBD17E4 /* Sources */ = { 371 | isa = PBXSourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | 0E4E14CC0817BC4E5D3AF4D2D3F45D78 /* Pods-KKStringValidator_Example-dummy.m in Sources */, 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | /* End PBXSourcesBuildPhase section */ 379 | 380 | /* Begin PBXTargetDependency section */ 381 | 08DCA3762052DCCA167BBCA8A86AEE55 /* PBXTargetDependency */ = { 382 | isa = PBXTargetDependency; 383 | name = KKStringValidator; 384 | target = 6C3AAFD7D8EB2037970F5F65CA306195 /* KKStringValidator */; 385 | targetProxy = 5F7A734B3798AAF6C3C3D7EAC7098ACB /* PBXContainerItemProxy */; 386 | }; 387 | /* End PBXTargetDependency section */ 388 | 389 | /* Begin XCBuildConfiguration section */ 390 | 22B272D6895E9D428D841CBC4D90DB57 /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 9FA5BEE5895E253A4BA8DB8C718057BD /* Pods-KKStringValidator_Example.release.xcconfig */; 393 | buildSettings = { 394 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 395 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 396 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 397 | CURRENT_PROJECT_VERSION = 1; 398 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 399 | DEFINES_MODULE = YES; 400 | DYLIB_COMPATIBILITY_VERSION = 1; 401 | DYLIB_CURRENT_VERSION = 1; 402 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 403 | ENABLE_STRICT_OBJC_MSGSEND = YES; 404 | GCC_NO_COMMON_BLOCKS = YES; 405 | INFOPLIST_FILE = "Target Support Files/Pods-KKStringValidator_Example/Info.plist"; 406 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 407 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 408 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 409 | MACH_O_TYPE = staticlib; 410 | MODULEMAP_FILE = "Target Support Files/Pods-KKStringValidator_Example/Pods-KKStringValidator_Example.modulemap"; 411 | MTL_ENABLE_DEBUG_INFO = NO; 412 | OTHER_LDFLAGS = ""; 413 | OTHER_LIBTOOLFLAGS = ""; 414 | PODS_ROOT = "$(SRCROOT)"; 415 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 416 | PRODUCT_NAME = Pods_KKStringValidator_Example; 417 | SDKROOT = iphoneos; 418 | SKIP_INSTALL = YES; 419 | TARGETED_DEVICE_FAMILY = "1,2"; 420 | VERSIONING_SYSTEM = "apple-generic"; 421 | VERSION_INFO_PREFIX = ""; 422 | }; 423 | name = Release; 424 | }; 425 | 4081BC43210B41E546BCC810D74DEB2D /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | baseConfigurationReference = 31135B4E830512613290A1611315BC65 /* Pods-KKStringValidator_Tests.release.xcconfig */; 428 | buildSettings = { 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-with-dsym"; 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 | INFOPLIST_FILE = "Target Support Files/Pods-KKStringValidator_Tests/Info.plist"; 441 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 442 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 443 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 444 | MACH_O_TYPE = staticlib; 445 | MODULEMAP_FILE = "Target Support Files/Pods-KKStringValidator_Tests/Pods-KKStringValidator_Tests.modulemap"; 446 | MTL_ENABLE_DEBUG_INFO = NO; 447 | OTHER_LDFLAGS = ""; 448 | OTHER_LIBTOOLFLAGS = ""; 449 | PODS_ROOT = "$(SRCROOT)"; 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 451 | PRODUCT_NAME = Pods_KKStringValidator_Tests; 452 | SDKROOT = iphoneos; 453 | SKIP_INSTALL = YES; 454 | TARGETED_DEVICE_FAMILY = "1,2"; 455 | VERSIONING_SYSTEM = "apple-generic"; 456 | VERSION_INFO_PREFIX = ""; 457 | }; 458 | name = Release; 459 | }; 460 | 75B0C3E3E15DBC76470450FD32338E7E /* Release */ = { 461 | isa = XCBuildConfiguration; 462 | baseConfigurationReference = 95A7FE8E471397F4C940F754B967A33B /* KKStringValidator.xcconfig */; 463 | buildSettings = { 464 | CLANG_ENABLE_MODULES = YES; 465 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 467 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 468 | CURRENT_PROJECT_VERSION = 1; 469 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 470 | DEFINES_MODULE = YES; 471 | DYLIB_COMPATIBILITY_VERSION = 1; 472 | DYLIB_CURRENT_VERSION = 1; 473 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 474 | ENABLE_STRICT_OBJC_MSGSEND = YES; 475 | GCC_NO_COMMON_BLOCKS = YES; 476 | GCC_PREFIX_HEADER = "Target Support Files/KKStringValidator/KKStringValidator-prefix.pch"; 477 | INFOPLIST_FILE = "Target Support Files/KKStringValidator/Info.plist"; 478 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 479 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 480 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 481 | MODULEMAP_FILE = "Target Support Files/KKStringValidator/KKStringValidator.modulemap"; 482 | MTL_ENABLE_DEBUG_INFO = NO; 483 | PRODUCT_NAME = KKStringValidator; 484 | SDKROOT = iphoneos; 485 | SKIP_INSTALL = YES; 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 | 8B8387F5F5DFE7335413FE9E35EC801E /* Debug */ = { 494 | isa = XCBuildConfiguration; 495 | baseConfigurationReference = 95A7FE8E471397F4C940F754B967A33B /* KKStringValidator.xcconfig */; 496 | buildSettings = { 497 | CLANG_ENABLE_MODULES = YES; 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; 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 | GCC_PREFIX_HEADER = "Target Support Files/KKStringValidator/KKStringValidator-prefix.pch"; 510 | INFOPLIST_FILE = "Target Support Files/KKStringValidator/Info.plist"; 511 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 512 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 514 | MODULEMAP_FILE = "Target Support Files/KKStringValidator/KKStringValidator.modulemap"; 515 | MTL_ENABLE_DEBUG_INFO = YES; 516 | PRODUCT_NAME = KKStringValidator; 517 | SDKROOT = iphoneos; 518 | SKIP_INSTALL = YES; 519 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 520 | SWIFT_VERSION = 3.0; 521 | TARGETED_DEVICE_FAMILY = "1,2"; 522 | VERSIONING_SYSTEM = "apple-generic"; 523 | VERSION_INFO_PREFIX = ""; 524 | }; 525 | name = Debug; 526 | }; 527 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */ = { 528 | isa = XCBuildConfiguration; 529 | buildSettings = { 530 | ALWAYS_SEARCH_USER_PATHS = NO; 531 | CLANG_ANALYZER_NONNULL = YES; 532 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 533 | CLANG_CXX_LIBRARY = "libc++"; 534 | CLANG_ENABLE_MODULES = YES; 535 | CLANG_ENABLE_OBJC_ARC = YES; 536 | CLANG_WARN_BOOL_CONVERSION = YES; 537 | CLANG_WARN_CONSTANT_CONVERSION = YES; 538 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 539 | CLANG_WARN_EMPTY_BODY = YES; 540 | CLANG_WARN_ENUM_CONVERSION = YES; 541 | CLANG_WARN_INT_CONVERSION = YES; 542 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 543 | CLANG_WARN_UNREACHABLE_CODE = YES; 544 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 545 | CODE_SIGNING_REQUIRED = NO; 546 | COPY_PHASE_STRIP = YES; 547 | ENABLE_NS_ASSERTIONS = NO; 548 | GCC_C_LANGUAGE_STANDARD = gnu99; 549 | GCC_PREPROCESSOR_DEFINITIONS = ( 550 | "POD_CONFIGURATION_RELEASE=1", 551 | "$(inherited)", 552 | ); 553 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 554 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 555 | GCC_WARN_UNDECLARED_SELECTOR = YES; 556 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 557 | GCC_WARN_UNUSED_FUNCTION = YES; 558 | GCC_WARN_UNUSED_VARIABLE = YES; 559 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 560 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 561 | STRIP_INSTALLED_PRODUCT = NO; 562 | SYMROOT = "${SRCROOT}/../build"; 563 | VALIDATE_PRODUCT = YES; 564 | }; 565 | name = Release; 566 | }; 567 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */ = { 568 | isa = XCBuildConfiguration; 569 | buildSettings = { 570 | ALWAYS_SEARCH_USER_PATHS = NO; 571 | CLANG_ANALYZER_NONNULL = YES; 572 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 573 | CLANG_CXX_LIBRARY = "libc++"; 574 | CLANG_ENABLE_MODULES = YES; 575 | CLANG_ENABLE_OBJC_ARC = YES; 576 | CLANG_WARN_BOOL_CONVERSION = YES; 577 | CLANG_WARN_CONSTANT_CONVERSION = YES; 578 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 579 | CLANG_WARN_EMPTY_BODY = YES; 580 | CLANG_WARN_ENUM_CONVERSION = YES; 581 | CLANG_WARN_INT_CONVERSION = YES; 582 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 583 | CLANG_WARN_UNREACHABLE_CODE = YES; 584 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 585 | CODE_SIGNING_REQUIRED = NO; 586 | COPY_PHASE_STRIP = NO; 587 | ENABLE_TESTABILITY = YES; 588 | GCC_C_LANGUAGE_STANDARD = gnu99; 589 | GCC_DYNAMIC_NO_PIC = NO; 590 | GCC_OPTIMIZATION_LEVEL = 0; 591 | GCC_PREPROCESSOR_DEFINITIONS = ( 592 | "POD_CONFIGURATION_DEBUG=1", 593 | "DEBUG=1", 594 | "$(inherited)", 595 | ); 596 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 597 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 598 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 599 | GCC_WARN_UNDECLARED_SELECTOR = YES; 600 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 601 | GCC_WARN_UNUSED_FUNCTION = YES; 602 | GCC_WARN_UNUSED_VARIABLE = YES; 603 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 604 | ONLY_ACTIVE_ARCH = YES; 605 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 606 | STRIP_INSTALLED_PRODUCT = NO; 607 | SYMROOT = "${SRCROOT}/../build"; 608 | }; 609 | name = Debug; 610 | }; 611 | DB962246D9EB3EED20E077FBF7A490D2 /* Debug */ = { 612 | isa = XCBuildConfiguration; 613 | baseConfigurationReference = E8EC32236BD0246CB2B64A59AC61D7AF /* Pods-KKStringValidator_Tests.debug.xcconfig */; 614 | buildSettings = { 615 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 616 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 617 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 618 | CURRENT_PROJECT_VERSION = 1; 619 | DEBUG_INFORMATION_FORMAT = dwarf; 620 | DEFINES_MODULE = YES; 621 | DYLIB_COMPATIBILITY_VERSION = 1; 622 | DYLIB_CURRENT_VERSION = 1; 623 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 624 | ENABLE_STRICT_OBJC_MSGSEND = YES; 625 | GCC_NO_COMMON_BLOCKS = YES; 626 | INFOPLIST_FILE = "Target Support Files/Pods-KKStringValidator_Tests/Info.plist"; 627 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 628 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 629 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 630 | MACH_O_TYPE = staticlib; 631 | MODULEMAP_FILE = "Target Support Files/Pods-KKStringValidator_Tests/Pods-KKStringValidator_Tests.modulemap"; 632 | MTL_ENABLE_DEBUG_INFO = YES; 633 | OTHER_LDFLAGS = ""; 634 | OTHER_LIBTOOLFLAGS = ""; 635 | PODS_ROOT = "$(SRCROOT)"; 636 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 637 | PRODUCT_NAME = Pods_KKStringValidator_Tests; 638 | SDKROOT = iphoneos; 639 | SKIP_INSTALL = YES; 640 | TARGETED_DEVICE_FAMILY = "1,2"; 641 | VERSIONING_SYSTEM = "apple-generic"; 642 | VERSION_INFO_PREFIX = ""; 643 | }; 644 | name = Debug; 645 | }; 646 | E55A5C23A4524CDF0D63958620A6A74D /* Debug */ = { 647 | isa = XCBuildConfiguration; 648 | baseConfigurationReference = C5A04DF777675BD62013A59852082B05 /* Pods-KKStringValidator_Example.debug.xcconfig */; 649 | buildSettings = { 650 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 651 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 652 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 653 | CURRENT_PROJECT_VERSION = 1; 654 | DEBUG_INFORMATION_FORMAT = dwarf; 655 | DEFINES_MODULE = YES; 656 | DYLIB_COMPATIBILITY_VERSION = 1; 657 | DYLIB_CURRENT_VERSION = 1; 658 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 659 | ENABLE_STRICT_OBJC_MSGSEND = YES; 660 | GCC_NO_COMMON_BLOCKS = YES; 661 | INFOPLIST_FILE = "Target Support Files/Pods-KKStringValidator_Example/Info.plist"; 662 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 663 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 664 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 665 | MACH_O_TYPE = staticlib; 666 | MODULEMAP_FILE = "Target Support Files/Pods-KKStringValidator_Example/Pods-KKStringValidator_Example.modulemap"; 667 | MTL_ENABLE_DEBUG_INFO = YES; 668 | OTHER_LDFLAGS = ""; 669 | OTHER_LIBTOOLFLAGS = ""; 670 | PODS_ROOT = "$(SRCROOT)"; 671 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 672 | PRODUCT_NAME = Pods_KKStringValidator_Example; 673 | SDKROOT = iphoneos; 674 | SKIP_INSTALL = YES; 675 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 676 | TARGETED_DEVICE_FAMILY = "1,2"; 677 | VERSIONING_SYSTEM = "apple-generic"; 678 | VERSION_INFO_PREFIX = ""; 679 | }; 680 | name = Debug; 681 | }; 682 | /* End XCBuildConfiguration section */ 683 | 684 | /* Begin XCConfigurationList section */ 685 | 1E3A2C3415BF730B7457CCEC6F627E2F /* Build configuration list for PBXNativeTarget "Pods-KKStringValidator_Example" */ = { 686 | isa = XCConfigurationList; 687 | buildConfigurations = ( 688 | E55A5C23A4524CDF0D63958620A6A74D /* Debug */, 689 | 22B272D6895E9D428D841CBC4D90DB57 /* Release */, 690 | ); 691 | defaultConfigurationIsVisible = 0; 692 | defaultConfigurationName = Release; 693 | }; 694 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */, 698 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | AD64E137E2177A440A5D6E0B7F9229C6 /* Build configuration list for PBXNativeTarget "KKStringValidator" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | 8B8387F5F5DFE7335413FE9E35EC801E /* Debug */, 707 | 75B0C3E3E15DBC76470450FD32338E7E /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | D936FB8A2C1E11D16919078E24867F02 /* Build configuration list for PBXNativeTarget "Pods-KKStringValidator_Tests" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | DB962246D9EB3EED20E077FBF7A490D2 /* Debug */, 716 | 4081BC43210B41E546BCC810D74DEB2D /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | /* End XCConfigurationList section */ 722 | }; 723 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 724 | } 725 | -------------------------------------------------------------------------------- /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 KKStringValidator 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 | -------------------------------------------------------------------------------- /KKStringValidator.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint KKStringValidator.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'KKStringValidator' 11 | s.version = '0.1.7' 12 | s.summary = 'Library for easy and fastest string validation based on сciterias.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = "For project to project you must validate some input fields, strings, etc, for thay accept some criterias (like length, exist uppercase char, exist number, etc). 21 | KKStringValidator helps to check string for needed criterias to be accepted." 22 | 23 | s.homepage = "https://github.com/krizhanovskii" 24 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 25 | s.license = 'MIT' 26 | s.author = { "k.krizhanovskii" => "k.krizhanovskii@gmail.com" } 27 | s.source = { :git => "https://github.com/krizhanovskii/KKStringValidator.git", :tag => s.version.to_s } 28 | # s.social_media_url = 'https://twitter.com/' 29 | 30 | s.ios.deployment_target = '9.0' 31 | 32 | s.source_files = 'KKStringValidator/Classes/**/*' 33 | 34 | # s.resource_bundles = { 35 | # 'KKStringValidator' => ['KKStringValidator/Assets/*.png'] 36 | # } 37 | 38 | # s.public_header_files = 'Pod/Classes/**/*.h' 39 | # s.frameworks = 'UIKit', 'MapKit' 40 | # s.dependency 'AFNetworking', '~> 2.3' 41 | end 42 | -------------------------------------------------------------------------------- /KKStringValidator/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krizhanovskii/KKStringValidator/cdebadc6e3d0f84e5b3d38593112eb878421f208/KKStringValidator/Assets/.gitkeep -------------------------------------------------------------------------------- /KKStringValidator/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krizhanovskii/KKStringValidator/cdebadc6e3d0f84e5b3d38593112eb878421f208/KKStringValidator/Classes/.gitkeep -------------------------------------------------------------------------------- /KKStringValidator/Classes/Criterias.swift: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // Copyright (c) 2016 k_krizhanovskii. All rights reserved. 4 | // 5 | 6 | import Foundation 7 | import UIKit 8 | 9 | /// helps create debug message 10 | /// 11 | /// - Parameters: 12 | /// - clas: class instance 13 | /// - message: message to be shown 14 | /// - Returns: string in format "DEBUG:class:message" 15 | public func debugMessage(_ clas:Any, message:String) -> String { 16 | return "DEBUG:\(clas.self):\(message)" 17 | } 18 | 19 | 20 | public protocol Criteriable { 21 | /// debug string for debug description of problem 22 | var debugErrorString : String {get} 23 | 24 | /// Check if value comform to criteria 25 | /// 26 | /// - Parameter value: value to be checked 27 | /// - Returns: return true if conform 28 | func isСonform(to value:String) -> Bool 29 | } 30 | 31 | 32 | 33 | /// list 34 | 35 | 36 | /// Check string length 37 | public struct LengthCriteria : Criteriable { 38 | public var debugErrorString: String = debugMessage(LengthCriteria.self, message:"Length less than {X}") 39 | 40 | private var length : Int 41 | 42 | public init(_ lenght : Int) { 43 | self.length = lenght 44 | self.debugErrorString = debugMessage(LengthCriteria.self, message:"Length less than \(length)") 45 | } 46 | 47 | public func isСonform(to value: String) -> Bool { 48 | return value.characters.count >= length 49 | } 50 | } 51 | 52 | 53 | /// Check if string contains one or more Uppercase char 54 | public struct UppercaseLetterExistCriteria : Criteriable { 55 | public var debugErrorString: String = debugMessage(UppercaseLetterExistCriteria.self, message:"no uppercase char exists") 56 | 57 | public init(){} 58 | 59 | public func isСonform(to value: String) -> Bool { 60 | for char in value.characters { 61 | if char.isUppercase() == true { 62 | return true 63 | } 64 | } 65 | return false 66 | } 67 | } 68 | 69 | /// Check if string contains one or more lowercase char 70 | public struct LowercaseLetterExistCriteria : Criteriable { 71 | public var debugErrorString: String = debugMessage(LowercaseLetterExistCriteria.self, message:"no lowercase char exists") 72 | 73 | public init(){} 74 | 75 | public func isСonform(to value: String) -> Bool { 76 | for char in value.characters { 77 | if char.isLowercase() == true { 78 | return true 79 | } 80 | } 81 | return false 82 | } 83 | 84 | } 85 | 86 | /// Check if string contains one or more number 87 | public struct NumberExistCriteria : Criteriable { 88 | public var debugErrorString: String = debugMessage(NumberExistCriteria.self, message:"no number char exists") 89 | 90 | public init(){} 91 | 92 | public func isСonform(to value: String) -> Bool { 93 | let regExptest = NSPredicate(format: "SELF MATCHES %@", ".*[0-9]+.*") 94 | return regExptest.evaluate(with: value) 95 | } 96 | } 97 | 98 | /// Check if string conform to RegExp 99 | public struct RegexpCriteria : Criteriable { 100 | 101 | public var debugErrorString: String 102 | private var regexp : String 103 | 104 | public init(_ regExp:String) { 105 | self.debugErrorString = debugMessage(RegexpCriteria.self, message:"no match to regexp \(regExp)") 106 | self.regexp = regExp 107 | } 108 | 109 | public func isСonform(to value: String) -> Bool { 110 | let regExptest = NSPredicate(format: "SELF MATCHES %@", regexp) 111 | return regExptest.evaluate(with: value) 112 | } 113 | } 114 | 115 | /// Check if string length between to values 116 | public struct RangeCriteria : Criteriable { 117 | 118 | public var debugErrorString: String 119 | 120 | private var from : Int 121 | private var to: Int 122 | 123 | public init(_ from:Int = 0, to:Int = 0) { 124 | guard to>from else { 125 | fatalError("from value (\(from)) must be less than to value(\(to))") 126 | } 127 | self.debugErrorString = debugMessage(RangeCriteria.self, message:"string length must be from \(from) to \(to)") 128 | self.from = from 129 | self.to = to 130 | } 131 | 132 | public func isСonform(to value: String) -> Bool { 133 | return value.characters.count > from && value.characters.count <= to 134 | } 135 | } 136 | 137 | 138 | /// check if first char is Letter. Also optional check big letter 139 | public struct FirstCharIsLetterCriteria : Criteriable { 140 | 141 | public var debugErrorString: String 142 | private var isBig : Bool 143 | 144 | public init(big:Bool = false) { 145 | var mess = "first char must be letter" 146 | if big == true { 147 | mess += " and in uppercase" 148 | } 149 | self.debugErrorString = debugMessage(FirstCharIsLetterCriteria.self, message:mess) 150 | self.isBig = big 151 | } 152 | 153 | public func isСonform(to value: String) -> Bool { 154 | if value.characters.count == 0 { 155 | return false 156 | } 157 | 158 | return Int(String(value.characters.first!)) == nil && (self.isBig == false ? true : value.characters.first!.isUppercase()) 159 | } 160 | } 161 | 162 | -------------------------------------------------------------------------------- /KKStringValidator/Classes/Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Extensions.swift 3 | // Pods 4 | // 5 | // Created by Krizhanovskii on 11/24/16. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | 12 | extension Character { 13 | //chek if char is lowercase 14 | public func isLowercase() -> Bool { 15 | let set = CharacterSet.lowercaseLetters 16 | 17 | if let scala = UnicodeScalar(String(self)) { 18 | return set.contains(scala) 19 | } else { 20 | return false 21 | } 22 | } 23 | 24 | //chek if char is uppercase 25 | public func isUppercase() -> Bool { 26 | let set = CharacterSet.uppercaseLetters 27 | 28 | if let scala = UnicodeScalar(String(self)) { 29 | return set.contains(scala) 30 | } else { 31 | return false 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /KKStringValidator/Classes/StringValidator.swift: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 k_krizhanovskii. All rights reserved. 2 | import UIKit 3 | import Foundation 4 | 5 | 6 | 7 | 8 | /// Validator result object 9 | /// 10 | /// - valid: everething is ok 11 | /// - notValid: find not valid prediction 12 | /// - notValide: find not valid array of predictions 13 | public enum ValidatorResult { 14 | case valid 15 | case notValid(criteria:Criteriable) 16 | case notValides(criterias:[Criteriable]) 17 | } 18 | 19 | 20 | /// Validator 21 | public struct StringValidator { 22 | /// predictions 23 | public var criterias: [Criteriable] 24 | 25 | ///init 26 | public init(_ criterias: [Criteriable]) { 27 | self.criterias = criterias 28 | } 29 | 30 | /// validate redictors to comform 31 | /// 32 | /// - Parameters: 33 | /// - value: string that must be validated 34 | /// - forceExit: if true -> stop process when first validation is fail. else create array of fail criterias 35 | /// - result: result of validating 36 | public func isValide(_ value:String,forceExit:Bool, result:@escaping (ValidatorResult) -> ()) { 37 | /// if need force quit 38 | if forceExit == true { 39 | for criteria in self.criterias { 40 | if criteria.isСonform(to: value) == false { 41 | result(.notValid(criteria: criteria)) 42 | return 43 | } 44 | } 45 | } else { 46 | //else find all 47 | let tmp = criterias.filter({ $0.isСonform(to: value) == false}) 48 | if tmp.count > 0 { 49 | result(.notValides(criterias: tmp)) 50 | return 51 | } 52 | } 53 | // if not find -> return all ok 54 | result(.valid) 55 | } 56 | } 57 | 58 | 59 | -------------------------------------------------------------------------------- /KKStringValidator/Classes/UITextFieldExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextFieldExtension.swift 3 | // Pods 4 | // 5 | // Created by Krizhanovskii on 11/24/16. 6 | // 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | 13 | /// extension for UITextField for validation 14 | extension UITextField { 15 | 16 | /// function for validating textField text 17 | /// 18 | /// - Parameters: 19 | /// - criterias: array of criterias 20 | /// - forceExit: flag for force extit. default in false 21 | /// - result: ValidatorResult object 22 | public func validate(_ criterias : [Criteriable], forceExit:Bool = false, result:@escaping (ValidatorResult)->Void) { 23 | StringValidator(criterias).isValide(self.text ?? "", forceExit: forceExit, result: result) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 k_krizhanovskii 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Swift String validator 2 | 3 | ### About 4 | Library for easy and fastest `string` validation based on сciterias. 5 | 6 | ### Instalation 7 | KKStringValidator is available through [CocoaPods](http://cocoapods.org). To install 8 | it, simply add the following line to your Podfile: 9 | 10 | ``` 11 | pod 'KKStringValidator' 12 | ``` 13 | 14 | ### Main idea 15 | For project to project you must validate some `input fields`, `strings`, etc for thay accept some criterias (like `length`, exist `uppercase char`, exist `number`, etc). 16 | 17 | ***KKStringValidator*** helps to check `string` for needed `criterias` to be accepted. 18 | 19 | ### Core features 20 | - validate `string` by one or `array` of `criterias` 21 | - aviable force fall(break validate) when `criteria` fail 22 | - default `criterias` exist 23 | - easy add custom `criteria` 24 | 25 | 26 | 27 | ### Example 28 | 29 | ```swift 30 | // import lib 31 | import KKStringValidator 32 | 33 | // code 34 | 35 | // Create criterias 36 | let lennghtCriteria = LengthCriteria(10) 37 | let regexpCriteria = RegexpCriteria("[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}") 38 | 39 | let criterias : [Criteriable] = [lennghtCriteria, UppercaseLetterExistCriteria(), LowercaseLetterExistCriteria(), NumberExistCriteria(), regexpCriteria] 40 | 41 | 42 | // validate 43 | StringValidator(criterias).isValide("q1Q", forceExit: false, result: { validator in 44 | switch validator { 45 | case .valid: 46 | print("All valid") 47 | case .notValid(let criteria): 48 | print(criteria.debugErrorString) 49 | case .notValides(let criterias): 50 | print("Criterias that fails:") 51 | _ = criterias.map({ print($0.debugErrorString) 52 | }) 53 | } 54 | }) 55 | 56 | ``` 57 | 58 | Output: 59 | ```swift 60 | Criterias that fails: 61 | DEBUG:LengthCriteria:Lenght less than 10 62 | DEBUG:RegexpCriteria:no mutch to regexp [A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4} 63 | ``` 64 | ### UITextFieldExtension 65 | Also created `extension` for `UITextField`. 66 | 67 | ```swift 68 | /// extension for UITextField for validation 69 | extension UITextField { 70 | /// function for validating textField text 71 | /// 72 | /// - Parameters: 73 | /// - criterias: array of criterias 74 | /// - forceExit: flag for force extit. default in false 75 | /// - result: ValidatorResult object 76 | public func validate(_ criterias : [Criteriable], forceExit:Bool = false, result:@escaping (ValidatorResult)->Void) { 77 | //code 78 | } 79 | } 80 | ``` 81 | 82 | Example of usage: 83 | 84 | ```swift 85 | func textFieldDidEndEditing(_ textField: UITextField) { 86 | textField.validate([LengthCriteria(4)], result: { result in 87 | switch result { 88 | case .valid: 89 | print("All valid") 90 | case .notValid(let criteria): 91 | print(criteria.debugErrorString) 92 | case .notValides(let criterias): 93 | print("Criterias that fails:") 94 | _ = criterias.map({ print($0.debugErrorString) 95 | }) 96 | } 97 | }) 98 | } 99 | ``` 100 | 101 | ### How its works 102 | First, you must take needed `criteria` from the `aviable criterias` or create custom `criteria`. All `criterias` must conform `protocol`: 103 | ```swift 104 | protocol Criteriable { 105 | /// debug string for helps detect problem 106 | var debugErrorString : String {get} 107 | 108 | /// Check if value conform to criteria 109 | /// 110 | /// - Parameter value: value to be checked 111 | /// - Returns: return true if conform 112 | func isConform(to value:String) -> Bool 113 | } 114 | ``` 115 | 116 | Then you can `validate` string by choosed `criterias` by calling: 117 | ```swift 118 | StringValidator([\* array of choosed criterias *\]).isValide("" \* string to must be validate *\, forceExit: false, result: { validator in 119 | switch validator { 120 | /// all criterias was passed 121 | case .valid: 122 | print("All valid") 123 | 124 | /// first failed criteria 125 | case .notValid(let criteria): 126 | 127 | /// all failed criterias 128 | case .notValides(let criterias): 129 | } 130 | }) 131 | ``` 132 | 133 | Thats all. Your string was validated and you get result. 134 | 135 | 136 | ### List of aviable Criterias 137 | ```swift 138 | struct LengthCriteria : Criteriable { \\code } \\ check string length 139 | 140 | struct UppercaseLetterExistCriteria : Criteriable { \\code } \\ check string contains one or more char in Uppercase 141 | 142 | struct LowercaseLetterExistCriteria : Criteriable { \\code } \\ check string contains one or more char in Lowercase 143 | 144 | struct NumberExistCriteria : Criteriable { \\code } \\ check string exist one or more numer 145 | 146 | struct RegexpCriteria : Criteriable { \\code } \\ check string must to RegExp 147 | 148 | struct RangeCriteria : Criteriable { \\code } \\ check string length inside range 149 | 150 | struct FirstCharIsLetterCriteria : Criteriable { \\code } \\ check first char is letter and optional check if in uppercase 151 | 152 | ``` 153 | 154 | 155 | ### How add custom Criteria 156 | It's easy. 157 | Just create `struct` and conform protocol `Criteriable`. 158 | ***Example***: 159 | ```swift 160 | struct MyCustomCriteria : Criteriable { 161 | var debugErrorString: String = debugMessage(MyCustomCriteria.self, message:"some debug message") 162 | func isConform(to value: String) -> Bool { 163 | /* some logic for check */ 164 | return false 165 | } 166 | } 167 | ``` 168 | Thats all. Simple easy :) 169 | 170 | 171 | 172 | 173 | 174 | 175 | # Author 176 | k.krizhanovskii, k.krizhanovskii@gmail.com 177 | 178 | ## License 179 | KKStatusBarService is available under the MIT license. 180 | 181 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 182 | 183 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 184 | 185 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 186 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------