├── _Pods.xcodeproj ├── MBTextFieldWithInputValidator ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── .DS_Store │ ├── Validators │ ├── MBEmptyInputValidator.swift │ ├── MBNumberInputValidator.swift │ ├── MBPhoneInputValidator.swift │ ├── MBAlphabetInputValidator.swift │ ├── MBPasswordInputValidator.swift │ ├── MBEmailInputValidator.swift │ ├── MBZipCodeInputValidator.swift │ └── MBInputValidator.swift │ ├── Extension │ ├── UIViewGetControllerExtension.swift │ └── UITextFieldValidatorExtension.swift │ └── View │ └── MBTextFieldWithInputValidator.swift ├── Example ├── Podfile ├── Pods │ ├── Target Support Files │ │ ├── MBTextFieldWithInputValidator │ │ │ ├── MBTextFieldWithInputValidator.modulemap │ │ │ ├── MBTextFieldWithInputValidator-dummy.m │ │ │ ├── MBTextFieldWithInputValidator-prefix.pch │ │ │ ├── MBTextFieldWithInputValidator-umbrella.h │ │ │ ├── MBTextFieldWithInputValidator.xcconfig │ │ │ └── Info.plist │ │ └── Pods-MBTextFieldWithInputValidator_Example │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example.modulemap │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example-dummy.m │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example-umbrella.h │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example-acknowledgements.markdown │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example-acknowledgements.plist │ │ │ ├── Pods-MBTextFieldWithInputValidator_Example-frameworks.sh │ │ │ └── Pods-MBTextFieldWithInputValidator_Example-resources.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── MBTextFieldWithInputValidator.podspec.json │ └── Pods.xcodeproj │ │ ├── xcuserdata │ │ └── mmoaay.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── MBTextFieldWithInputValidator.xcscheme │ │ │ └── Pods-MBTextFieldWithInputValidator_Example.xcscheme │ │ └── project.pbxproj ├── MBTextFieldWithInputValidator.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── MBTextFieldWithInputValidator-Example.xcscheme │ └── project.pbxproj ├── MBTextFieldWithInputValidator.xcworkspace │ └── contents.xcworkspacedata ├── Podfile.lock ├── MBTextFieldWithInputValidator │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── ViewController.swift │ ├── AppDelegate.swift │ └── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard └── Tests │ ├── Info.plist │ └── Tests.swift ├── MBTextFieldWithInputValidator.podspec ├── LICENSE └── README.md /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'MBTextFieldWithInputValidator_Example' do 4 | pod 'MBTextFieldWithInputValidator', :path => '../' 5 | end 6 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmoaay/MBTextFieldWithInputValidator/HEAD/MBTextFieldWithInputValidator/Classes/.DS_Store -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.modulemap: -------------------------------------------------------------------------------- 1 | framework module MBTextFieldWithInputValidator { 2 | umbrella header "MBTextFieldWithInputValidator-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MBTextFieldWithInputValidator : NSObject 3 | @end 4 | @implementation PodsDummy_MBTextFieldWithInputValidator 5 | @end 6 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_MBTextFieldWithInputValidator_Example { 2 | umbrella header "Pods-MBTextFieldWithInputValidator_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_MBTextFieldWithInputValidator_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_MBTextFieldWithInputValidator_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MBTextFieldWithInputValidator (0.7.0) 3 | 4 | DEPENDENCIES: 5 | - MBTextFieldWithInputValidator (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MBTextFieldWithInputValidator: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MBTextFieldWithInputValidator: 691a7a09f21be464e6a2e344a7682fe533ced197 13 | 14 | PODFILE CHECKSUM: 0f647bccf3147205d86657711a0dd50eb92b21c6 15 | 16 | COCOAPODS: 1.2.0.beta.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - MBTextFieldWithInputValidator (0.7.0) 3 | 4 | DEPENDENCIES: 5 | - MBTextFieldWithInputValidator (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | MBTextFieldWithInputValidator: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | MBTextFieldWithInputValidator: 691a7a09f21be464e6a2e344a7682fe533ced197 13 | 14 | PODFILE CHECKSUM: 0f647bccf3147205d86657711a0dd50eb92b21c6 15 | 16 | COCOAPODS: 1.2.0.beta.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double MBTextFieldWithInputValidatorVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char MBTextFieldWithInputValidatorVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_MBTextFieldWithInputValidator_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_MBTextFieldWithInputValidator_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/MBTextFieldWithInputValidator.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MBTextFieldWithInputValidator", 3 | "version": "0.7.0", 4 | "summary": "\u001a\u001a\u001a\u001a\u001a\u001a", 5 | "homepage": "https://github.com/mmoaay/MBTextFieldWithInputValidator", 6 | "license": "MIT", 7 | "authors": { 8 | "mmoaay": "mmoaay@sina.com" 9 | }, 10 | "source": { 11 | "git": "https://github.com/mmoaay/MBTextFieldWithInputValidator.git", 12 | "tag": "0.7.0" 13 | }, 14 | "platforms": { 15 | "ios": "8.0" 16 | }, 17 | "source_files": "MBTextFieldWithInputValidator/Classes/**/*" 18 | } 19 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "MBTextFieldWithInputValidator" 3 | s.version = "0.9.0" 4 | s.summary = "" 5 | 6 | s.homepage = "https://github.com/mmoaay/MBTextFieldWithInputValidator" 7 | s.license = 'MIT' 8 | s.author = { "mmoaay" => "mmoaay@sina.com" } 9 | s.source = { :git => "https://github.com/mmoaay/MBTextFieldWithInputValidator.git", :tag => s.version.to_s } 10 | 11 | s.ios.deployment_target = '8.0' 12 | 13 | s.source_files = 'MBTextFieldWithInputValidator/Classes/**/*' 14 | end 15 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBEmptyInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBEmptyInputValidator.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class MBEmptyInputValidator: MBInputValidator { 12 | public override func validateInput(_ input:UITextField) -> ErrorDesc?{ 13 | if false == super.validateInput(input, regexString: nil) { 14 | return ErrorDesc(title: "温馨提示", leading: "请输入", trailing: "") 15 | } 16 | return nil 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBNumberInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBNumberInputValidator.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class MBNumberInputValidator: MBInputValidator { 12 | public override func validateInput(_ input:UITextField) -> ErrorDesc?{ 13 | if false == super.validateInput(input, regexString: "^[0-9]+$") { 14 | return ErrorDesc(title: "温馨提示", leading: "", trailing: "须由数字组成") 15 | } 16 | return nil 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBPhoneInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBPhoneInputValidator.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class MBPhoneInputValidator: MBInputValidator { 12 | public override func validateInput(_ input:UITextField) -> ErrorDesc?{ 13 | if false == super.validateInput(input, regexString: "^\\d{11}$") { 14 | return ErrorDesc(title: "温馨提示", leading: "请输入正确的", trailing: "") 15 | } 16 | return nil 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBAlphabetInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBAlphabetInputValidator.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class MBAlphabetInputValidator: MBInputValidator { 12 | public override func validateInput(_ input:UITextField) -> ErrorDesc?{ 13 | if false == super.validateInput(input, regexString: "^[A-Za-z]+$") { 14 | return ErrorDesc(title: "温馨提示", leading: "", trailing: "须由英文字母组成") 15 | } 16 | return nil 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBPasswordInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBPasswordInputValidator.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class MBPasswordInputValidator: MBInputValidator { 12 | public override func validateInput(_ input:UITextField) -> ErrorDesc?{ 13 | if false == super.validateInput(input, regexString: "^[A-Za-z0-9]{6,12}$") { 14 | return ErrorDesc(title: "温馨提示", leading: "", trailing: "须由6-12位的字母和数字组成") 15 | } 16 | return nil 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBEmailInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBEmailInputValidator.swift 3 | // JinJiangDuCheng 4 | // 5 | // Created by Perry on 15/8/20. 6 | // Copyright (c) 2015年 SmartJ. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class MBEmailInputValidator: MBInputValidator { 12 | public override func validateInput(_ input:UITextField) -> ErrorDesc?{ 13 | if false == super.validateInput(input, regexString: "\\b([a-zA-Z0-9%_.+\\-]+)@([a-zA-Z0-9.\\-]+?\\.[a-zA-Z]{2,6})\\b") { 14 | return ErrorDesc(title: "温馨提示", leading: "请输入正确的", trailing: "") 15 | } 16 | return nil 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/MBTextFieldWithInputValidator 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Extension/UIViewGetControllerExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewGetControllerExtension.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public extension UIView{ 12 | public func viewController() -> UIViewController? { 13 | var next:UIView? = self.superview! 14 | while next != nil{ 15 | let nextResponder = next!.next 16 | if nextResponder?.isKind(of: UIViewController.classForCoder()) == true { 17 | return nextResponder as? UIViewController 18 | } 19 | next = next!.superview 20 | } 21 | return nil 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator/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/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/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/MBTextFieldWithInputValidator" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "MBTextFieldWithInputValidator" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/MBTextFieldWithInputValidator" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "MBTextFieldWithInputValidator" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBTextFieldWithInputValidator/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.7.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBZipCodeInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBZipCodeInputValidator.swift 3 | // JinJiangDuCheng 4 | // 5 | // Created by Perry on 15/8/20. 6 | // Copyright (c) 2015年 SmartJ. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | //class MBPhoneInputValidator: MBInputValidator { 13 | // override func validateInput(input:UITextField) -> ErrorDesc?{ 14 | // if false == super.validateInput(input, regexString: "^\\d{11}$") { 15 | // return ErrorDesc(title: "温馨提示", leading: "请输入正确的", trailing: "") 16 | // } 17 | // return nil 18 | // } 19 | //} 20 | 21 | public class MBZipCodeInputValidator: MBInputValidator { 22 | public override func validateInput(_ input:UITextField) -> ErrorDesc?{ 23 | if false == super.validateInput(input, regexString: "^[1-9]\\d{5}|$") { 24 | return ErrorDesc(title: "温馨提示", leading: "请输入正确的", trailing: "") 25 | } 26 | return nil 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 mmoaay 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 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator/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/MBTextFieldWithInputValidator/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by mmoaay on 04/21/2016. 6 | // Copyright (c) 2016 mmoaay. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MBTextFieldWithInputValidator 11 | 12 | class ViewController: UIViewController { 13 | @IBOutlet weak var phoneTextField: MBTextFieldWithInputValidator! 14 | @IBOutlet weak var pwdTextField: UITextField! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | // Do any additional setup after loading the view, typically from a nib. 19 | 20 | phoneTextField.inputValidator = MBPhoneInputValidator(next:MBNumberInputValidator(next: MBEmptyInputValidator())) 21 | } 22 | 23 | override func didReceiveMemoryWarning() { 24 | super.didReceiveMemoryWarning() 25 | // Dispose of any resources that can be recreated. 26 | } 27 | 28 | @IBAction func submit(_ sender: AnyObject) { 29 | if let error = phoneTextField.validate("手机号", shouldAlert: true) { 30 | return 31 | } 32 | 33 | if let error = pwdTextField.validate("密码", shouldAlert: true, validator:MBPasswordInputValidator(next: MBEmptyInputValidator())) { 34 | return 35 | } 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MBTextFieldWithInputValidator 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/MBTextFieldWithInputValidator.svg?style=flat)](http://cocoapods.org/pods/MBTextFieldWithInputValidator) 4 | [![License](https://img.shields.io/cocoapods/l/MBTextFieldWithInputValidator.svg?style=flat)](http://cocoapods.org/pods/MBTextFieldWithInputValidator) 5 | [![Platform](https://img.shields.io/cocoapods/p/MBTextFieldWithInputValidator.svg?style=flat)](http://cocoapods.org/pods/MBTextFieldWithInputValidator) 6 | 7 | ## 功能 8 | 9 | 对 `UITextField` 的内容进行验证功能,如果内容不符合验证策略,则弹出错误信息提示用户。 10 | 11 | ## 主要特点 12 | 13 | 1.单个验证器的实现采用策略模式,使用者可以通过继承 `MBInputValidator`,重写 `func validateInput(input:UITextField) -> ErrorDesc?` 方法来自定义验证策略。目前已经实现的验证器如下: 14 | 15 | - `MBEmptyInputValidator`:判断内容是否为空。 16 | - `MBAlphabetInputValidator`:判断内容是否是英文字母。 17 | - `MBNumberInputValidator`:判断内容是否是数字。 18 | - `MBPhoneInputValidator`:判断内容是否是手机号。 19 | - `MBPasswordInputValidator`:判断内容是否是6-12位字母或数字组成的密码。 20 | 21 | 2.为同一个 `UITextField` 指定多个验证器采用了链式的方式(具体指定方法参见 Example),验证器可以在代码中指定,也可以在 Xib/Storyboard 中指定,验证时只需要调用验证方法即可,实现验证策略对业务开发者透明。 22 | 23 | ## 使用 24 | 25 | clone 项目,然后在 Example 目录执行 `pod install`。 26 | 27 | 28 | ## 安装 29 | 30 | MBTextFieldWithInputValidator 已经支持 [CocoaPods](http://cocoapods.org)。只需要在 Podfile 中加入下面的内容即可: 31 | 32 | ```ruby 33 | pod "MBTextFieldWithInputValidator" 34 | ``` 35 | 36 | ## 更新 37 | 38 | 目前已经支持 Swift 3.0 39 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## MBTextFieldWithInputValidator 5 | 6 | Copyright (c) 2016 mmoaay 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Extension/UITextFieldValidatorExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextFieldValidatorExtension.swift 3 | // Pods 4 | // 5 | // Created by ZhengYidong on 9/30/16. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | extension UITextField { 12 | open func validate(_ inputName:String, shouldAlert:Bool, validator:MBInputValidator) -> MBInputValidator.ErrorDesc? { 13 | let error = self.validate(validator) 14 | if nil != error { 15 | let errorReason = (error?.leading)!+inputName+(error?.trailing)! 16 | if true == shouldAlert { 17 | self.showAlertMessage((error?.title)!, message: errorReason) 18 | } 19 | } 20 | return error 21 | } 22 | 23 | fileprivate func validate(_ validator:MBInputValidator?) -> MBInputValidator.ErrorDesc?{ 24 | if nil == validator { 25 | return nil 26 | } 27 | let ret = self.validate(validator!.next) 28 | if nil != ret { 29 | return ret 30 | } 31 | return validator!.validateInput(self) 32 | } 33 | 34 | fileprivate func showAlertMessage(_ title:String ,message:String) { 35 | let alertController = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert) 36 | let cancelAction = UIAlertAction(title: "知道了", style: UIAlertActionStyle.cancel, handler: nil) 37 | alertController.addAction(cancelAction) 38 | self.viewController()!.present(alertController, animated: true, completion: nil) 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/View/MBTextFieldWithInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBTextFieldWithInputValidator.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class MBTextFieldWithInputValidator: UITextField { 12 | @IBOutlet open var inputValidator:MBInputValidator? 13 | 14 | open func validate(_ inputName:String, shouldAlert:Bool) -> MBInputValidator.ErrorDesc? { 15 | let error = self.validate(self.inputValidator) 16 | if nil != error { 17 | let errorReason = (error?.leading)!+inputName+(error?.trailing)! 18 | if true == shouldAlert { 19 | self.showAlertMessage((error?.title)!, message: errorReason) 20 | } 21 | } 22 | return error 23 | } 24 | 25 | fileprivate func validate(_ validator:MBInputValidator?) -> MBInputValidator.ErrorDesc?{ 26 | if nil == validator { 27 | return nil 28 | } 29 | let ret = self.validate(validator!.next) 30 | if nil != ret { 31 | return ret 32 | } 33 | return validator!.validateInput(self) 34 | } 35 | 36 | fileprivate func showAlertMessage(_ title:String ,message:String) { 37 | let alertController = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert) 38 | let cancelAction = UIAlertAction(title: "知道了", style: UIAlertActionStyle.cancel, handler: nil) 39 | alertController.addAction(cancelAction) 40 | self.viewController()!.present(alertController, animated: true, completion: nil) 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /MBTextFieldWithInputValidator/Classes/Validators/MBInputValidator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MBInputValidator.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by Perry on 15/7/6. 6 | // Copyright © 2015年 MmoaaY. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class MBInputValidator: NSObject { 12 | 13 | @IBOutlet public var next:MBInputValidator? 14 | 15 | public convenience init(next:MBInputValidator? = nil) { 16 | self.init() 17 | self.next = next 18 | } 19 | 20 | public class ErrorDesc { 21 | init(title:String, leading:String, trailing:String) { 22 | self.title = title 23 | self.leading = leading 24 | self.trailing = trailing 25 | } 26 | var title:String? 27 | var leading:String? 28 | var trailing:String? 29 | } 30 | 31 | public func validateInput(_ input:UITextField) -> ErrorDesc?{ 32 | return nil 33 | } 34 | 35 | public func validateInput(_ input:UITextField, regexString:String?) -> Bool{ 36 | if nil == regexString { 37 | let trim = input.text?.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) 38 | return 0 != trim?.lengthOfBytes(using: String.Encoding.utf8) 39 | }else { 40 | do { 41 | let regex:NSRegularExpression = try NSRegularExpression(pattern: regexString!, options: NSRegularExpression.Options.anchorsMatchLines) 42 | let numberOfMactches = regex.numberOfMatches(in: input.text!, options: NSRegularExpression.MatchingOptions.anchored, range: NSMakeRange(0, (input.text?.lengthOfBytes(using: String.Encoding.utf8))!)) 43 | 44 | if 0 == numberOfMactches { 45 | return false 46 | } 47 | } catch { 48 | return false 49 | } 50 | return true 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // MBTextFieldWithInputValidator 4 | // 5 | // Created by mmoaay on 04/21/2016. 6 | // Copyright (c) 2016 mmoaay. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | private func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/mmoaay.xcuserdatad/xcschemes/MBTextFieldWithInputValidator.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2016 mmoaay <mmoaay@sina.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | MBTextFieldWithInputValidator 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/mmoaay.xcuserdatad/xcschemes/Pods-MBTextFieldWithInputValidator_Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1"" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator.xcodeproj/xcshareddata/xcschemes/MBTextFieldWithInputValidator-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/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/MBTextFieldWithInputValidator.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | F0267E777FEF040A04922920 /* Pods_MBTextFieldWithInputValidator_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C2B92F04B247875B58B63492 /* Pods_MBTextFieldWithInputValidator_Example.framework */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 25 | remoteInfo = MBTextFieldWithInputValidator; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 0EF8B6951DE4C3E59431921F /* Pods-MBTextFieldWithInputValidator_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MBTextFieldWithInputValidator_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example.release.xcconfig"; sourceTree = ""; }; 31 | 3933128A22C25070FFEBF542 /* MBTextFieldWithInputValidator.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MBTextFieldWithInputValidator.podspec; path = ../MBTextFieldWithInputValidator.podspec; sourceTree = ""; }; 32 | 4AFB4D74A021FB8972EC2290 /* Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig"; sourceTree = ""; }; 33 | 607FACD01AFB9204008FA782 /* MBTextFieldWithInputValidator_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MBTextFieldWithInputValidator_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 37 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 607FACE51AFB9204008FA782 /* MBTextFieldWithInputValidator_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MBTextFieldWithInputValidator_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 43 | C2B92F04B247875B58B63492 /* Pods_MBTextFieldWithInputValidator_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MBTextFieldWithInputValidator_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | CB1FC478CFE2AF83CF2DD14C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 45 | E4D0C36E766451E2DB9EA39F /* Pods_MBTextFieldWithInputValidator_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MBTextFieldWithInputValidator_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | F4D7DF3E3895062DA9B39EE0 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | F0267E777FEF040A04922920 /* Pods_MBTextFieldWithInputValidator_Example.framework in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 236236B3EE6DC7B4E87C3469 /* Pods */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 4AFB4D74A021FB8972EC2290 /* Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig */, 72 | 0EF8B6951DE4C3E59431921F /* Pods-MBTextFieldWithInputValidator_Example.release.xcconfig */, 73 | ); 74 | name = Pods; 75 | sourceTree = ""; 76 | }; 77 | 607FACC71AFB9204008FA782 = { 78 | isa = PBXGroup; 79 | children = ( 80 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 81 | 607FACD21AFB9204008FA782 /* Example for MBTextFieldWithInputValidator */, 82 | 607FACE81AFB9204008FA782 /* Tests */, 83 | 607FACD11AFB9204008FA782 /* Products */, 84 | 236236B3EE6DC7B4E87C3469 /* Pods */, 85 | 8132E2EF0C90E0136D74E6C8 /* Frameworks */, 86 | ); 87 | sourceTree = ""; 88 | }; 89 | 607FACD11AFB9204008FA782 /* Products */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 607FACD01AFB9204008FA782 /* MBTextFieldWithInputValidator_Example.app */, 93 | 607FACE51AFB9204008FA782 /* MBTextFieldWithInputValidator_Tests.xctest */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 607FACD21AFB9204008FA782 /* Example for MBTextFieldWithInputValidator */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 102 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 103 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 104 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 105 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 106 | 607FACD31AFB9204008FA782 /* Supporting Files */, 107 | ); 108 | name = "Example for MBTextFieldWithInputValidator"; 109 | path = MBTextFieldWithInputValidator; 110 | sourceTree = ""; 111 | }; 112 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 607FACD41AFB9204008FA782 /* Info.plist */, 116 | ); 117 | name = "Supporting Files"; 118 | sourceTree = ""; 119 | }; 120 | 607FACE81AFB9204008FA782 /* Tests */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 124 | 607FACE91AFB9204008FA782 /* Supporting Files */, 125 | ); 126 | path = Tests; 127 | sourceTree = ""; 128 | }; 129 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 607FACEA1AFB9204008FA782 /* Info.plist */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 3933128A22C25070FFEBF542 /* MBTextFieldWithInputValidator.podspec */, 141 | CB1FC478CFE2AF83CF2DD14C /* README.md */, 142 | F4D7DF3E3895062DA9B39EE0 /* LICENSE */, 143 | ); 144 | name = "Podspec Metadata"; 145 | sourceTree = ""; 146 | }; 147 | 8132E2EF0C90E0136D74E6C8 /* Frameworks */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | C2B92F04B247875B58B63492 /* Pods_MBTextFieldWithInputValidator_Example.framework */, 151 | E4D0C36E766451E2DB9EA39F /* Pods_MBTextFieldWithInputValidator_Tests.framework */, 152 | ); 153 | name = Frameworks; 154 | sourceTree = ""; 155 | }; 156 | /* End PBXGroup section */ 157 | 158 | /* Begin PBXNativeTarget section */ 159 | 607FACCF1AFB9204008FA782 /* MBTextFieldWithInputValidator_Example */ = { 160 | isa = PBXNativeTarget; 161 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MBTextFieldWithInputValidator_Example" */; 162 | buildPhases = ( 163 | 611290B202291BFDDA7E8DDA /* [CP] Check Pods Manifest.lock */, 164 | 607FACCC1AFB9204008FA782 /* Sources */, 165 | 607FACCD1AFB9204008FA782 /* Frameworks */, 166 | 607FACCE1AFB9204008FA782 /* Resources */, 167 | 4AB92961BC7E331649F71E41 /* [CP] Embed Pods Frameworks */, 168 | 63A4DD67C6D3FEAB144A47A4 /* [CP] Copy Pods Resources */, 169 | ); 170 | buildRules = ( 171 | ); 172 | dependencies = ( 173 | ); 174 | name = MBTextFieldWithInputValidator_Example; 175 | productName = MBTextFieldWithInputValidator; 176 | productReference = 607FACD01AFB9204008FA782 /* MBTextFieldWithInputValidator_Example.app */; 177 | productType = "com.apple.product-type.application"; 178 | }; 179 | 607FACE41AFB9204008FA782 /* MBTextFieldWithInputValidator_Tests */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MBTextFieldWithInputValidator_Tests" */; 182 | buildPhases = ( 183 | 607FACE11AFB9204008FA782 /* Sources */, 184 | 607FACE21AFB9204008FA782 /* Frameworks */, 185 | 607FACE31AFB9204008FA782 /* Resources */, 186 | ); 187 | buildRules = ( 188 | ); 189 | dependencies = ( 190 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 191 | ); 192 | name = MBTextFieldWithInputValidator_Tests; 193 | productName = Tests; 194 | productReference = 607FACE51AFB9204008FA782 /* MBTextFieldWithInputValidator_Tests.xctest */; 195 | productType = "com.apple.product-type.bundle.unit-test"; 196 | }; 197 | /* End PBXNativeTarget section */ 198 | 199 | /* Begin PBXProject section */ 200 | 607FACC81AFB9204008FA782 /* Project object */ = { 201 | isa = PBXProject; 202 | attributes = { 203 | LastSwiftUpdateCheck = 0720; 204 | LastUpgradeCheck = 0800; 205 | ORGANIZATIONNAME = CocoaPods; 206 | TargetAttributes = { 207 | 607FACCF1AFB9204008FA782 = { 208 | CreatedOnToolsVersion = 6.3.1; 209 | DevelopmentTeam = J3TA3RL75G; 210 | LastSwiftMigration = 0800; 211 | }; 212 | 607FACE41AFB9204008FA782 = { 213 | CreatedOnToolsVersion = 6.3.1; 214 | DevelopmentTeam = J3TA3RL75G; 215 | LastSwiftMigration = 0800; 216 | TestTargetID = 607FACCF1AFB9204008FA782; 217 | }; 218 | }; 219 | }; 220 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MBTextFieldWithInputValidator" */; 221 | compatibilityVersion = "Xcode 3.2"; 222 | developmentRegion = English; 223 | hasScannedForEncodings = 0; 224 | knownRegions = ( 225 | en, 226 | Base, 227 | ); 228 | mainGroup = 607FACC71AFB9204008FA782; 229 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 230 | projectDirPath = ""; 231 | projectRoot = ""; 232 | targets = ( 233 | 607FACCF1AFB9204008FA782 /* MBTextFieldWithInputValidator_Example */, 234 | 607FACE41AFB9204008FA782 /* MBTextFieldWithInputValidator_Tests */, 235 | ); 236 | }; 237 | /* End PBXProject section */ 238 | 239 | /* Begin PBXResourcesBuildPhase section */ 240 | 607FACCE1AFB9204008FA782 /* Resources */ = { 241 | isa = PBXResourcesBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 245 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 246 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | 607FACE31AFB9204008FA782 /* Resources */ = { 251 | isa = PBXResourcesBuildPhase; 252 | buildActionMask = 2147483647; 253 | files = ( 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | /* End PBXResourcesBuildPhase section */ 258 | 259 | /* Begin PBXShellScriptBuildPhase section */ 260 | 4AB92961BC7E331649F71E41 /* [CP] Embed Pods Frameworks */ = { 261 | isa = PBXShellScriptBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | ); 265 | inputPaths = ( 266 | ); 267 | name = "[CP] Embed Pods Frameworks"; 268 | outputPaths = ( 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | shellPath = /bin/sh; 272 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-frameworks.sh\"\n"; 273 | showEnvVarsInLog = 0; 274 | }; 275 | 611290B202291BFDDA7E8DDA /* [CP] Check Pods Manifest.lock */ = { 276 | isa = PBXShellScriptBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | ); 280 | inputPaths = ( 281 | ); 282 | name = "[CP] Check Pods Manifest.lock"; 283 | outputPaths = ( 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | shellPath = /bin/sh; 287 | 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"; 288 | showEnvVarsInLog = 0; 289 | }; 290 | 63A4DD67C6D3FEAB144A47A4 /* [CP] Copy Pods Resources */ = { 291 | isa = PBXShellScriptBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | ); 295 | inputPaths = ( 296 | ); 297 | name = "[CP] Copy Pods Resources"; 298 | outputPaths = ( 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | shellPath = /bin/sh; 302 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example-resources.sh\"\n"; 303 | showEnvVarsInLog = 0; 304 | }; 305 | /* End PBXShellScriptBuildPhase section */ 306 | 307 | /* Begin PBXSourcesBuildPhase section */ 308 | 607FACCC1AFB9204008FA782 /* Sources */ = { 309 | isa = PBXSourcesBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 313 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 314 | ); 315 | runOnlyForDeploymentPostprocessing = 0; 316 | }; 317 | 607FACE11AFB9204008FA782 /* Sources */ = { 318 | isa = PBXSourcesBuildPhase; 319 | buildActionMask = 2147483647; 320 | files = ( 321 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | }; 325 | /* End PBXSourcesBuildPhase section */ 326 | 327 | /* Begin PBXTargetDependency section */ 328 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 329 | isa = PBXTargetDependency; 330 | target = 607FACCF1AFB9204008FA782 /* MBTextFieldWithInputValidator_Example */; 331 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 332 | }; 333 | /* End PBXTargetDependency section */ 334 | 335 | /* Begin PBXVariantGroup section */ 336 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 337 | isa = PBXVariantGroup; 338 | children = ( 339 | 607FACDA1AFB9204008FA782 /* Base */, 340 | ); 341 | name = Main.storyboard; 342 | sourceTree = ""; 343 | }; 344 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 345 | isa = PBXVariantGroup; 346 | children = ( 347 | 607FACDF1AFB9204008FA782 /* Base */, 348 | ); 349 | name = LaunchScreen.xib; 350 | sourceTree = ""; 351 | }; 352 | /* End PBXVariantGroup section */ 353 | 354 | /* Begin XCBuildConfiguration section */ 355 | 607FACED1AFB9204008FA782 /* Debug */ = { 356 | isa = XCBuildConfiguration; 357 | buildSettings = { 358 | ALWAYS_SEARCH_USER_PATHS = NO; 359 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 360 | CLANG_CXX_LIBRARY = "libc++"; 361 | CLANG_ENABLE_MODULES = YES; 362 | CLANG_ENABLE_OBJC_ARC = YES; 363 | CLANG_WARN_BOOL_CONVERSION = YES; 364 | CLANG_WARN_CONSTANT_CONVERSION = YES; 365 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 366 | CLANG_WARN_EMPTY_BODY = YES; 367 | CLANG_WARN_ENUM_CONVERSION = YES; 368 | CLANG_WARN_INFINITE_RECURSION = YES; 369 | CLANG_WARN_INT_CONVERSION = YES; 370 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 371 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 372 | CLANG_WARN_UNREACHABLE_CODE = YES; 373 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 374 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 375 | COPY_PHASE_STRIP = NO; 376 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 377 | ENABLE_STRICT_OBJC_MSGSEND = YES; 378 | ENABLE_TESTABILITY = YES; 379 | GCC_C_LANGUAGE_STANDARD = gnu99; 380 | GCC_DYNAMIC_NO_PIC = NO; 381 | GCC_NO_COMMON_BLOCKS = YES; 382 | GCC_OPTIMIZATION_LEVEL = 0; 383 | GCC_PREPROCESSOR_DEFINITIONS = ( 384 | "DEBUG=1", 385 | "$(inherited)", 386 | ); 387 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 388 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 389 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 390 | GCC_WARN_UNDECLARED_SELECTOR = YES; 391 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 392 | GCC_WARN_UNUSED_FUNCTION = YES; 393 | GCC_WARN_UNUSED_VARIABLE = YES; 394 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 395 | MTL_ENABLE_DEBUG_INFO = YES; 396 | ONLY_ACTIVE_ARCH = YES; 397 | SDKROOT = iphoneos; 398 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 399 | }; 400 | name = Debug; 401 | }; 402 | 607FACEE1AFB9204008FA782 /* Release */ = { 403 | isa = XCBuildConfiguration; 404 | buildSettings = { 405 | ALWAYS_SEARCH_USER_PATHS = NO; 406 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 407 | CLANG_CXX_LIBRARY = "libc++"; 408 | CLANG_ENABLE_MODULES = YES; 409 | CLANG_ENABLE_OBJC_ARC = YES; 410 | CLANG_WARN_BOOL_CONVERSION = YES; 411 | CLANG_WARN_CONSTANT_CONVERSION = YES; 412 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 413 | CLANG_WARN_EMPTY_BODY = YES; 414 | CLANG_WARN_ENUM_CONVERSION = YES; 415 | CLANG_WARN_INFINITE_RECURSION = YES; 416 | CLANG_WARN_INT_CONVERSION = YES; 417 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 418 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 419 | CLANG_WARN_UNREACHABLE_CODE = YES; 420 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 421 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 422 | COPY_PHASE_STRIP = NO; 423 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 424 | ENABLE_NS_ASSERTIONS = NO; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | GCC_C_LANGUAGE_STANDARD = gnu99; 427 | GCC_NO_COMMON_BLOCKS = YES; 428 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 429 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 430 | GCC_WARN_UNDECLARED_SELECTOR = YES; 431 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 432 | GCC_WARN_UNUSED_FUNCTION = YES; 433 | GCC_WARN_UNUSED_VARIABLE = YES; 434 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 435 | MTL_ENABLE_DEBUG_INFO = NO; 436 | SDKROOT = iphoneos; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 438 | VALIDATE_PRODUCT = YES; 439 | }; 440 | name = Release; 441 | }; 442 | 607FACF01AFB9204008FA782 /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | baseConfigurationReference = 4AFB4D74A021FB8972EC2290 /* Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig */; 445 | buildSettings = { 446 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | DEVELOPMENT_TEAM = J3TA3RL75G; 449 | INFOPLIST_FILE = MBTextFieldWithInputValidator/Info.plist; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 451 | MODULE_NAME = ExampleApp; 452 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | SWIFT_VERSION = 3.0; 455 | }; 456 | name = Debug; 457 | }; 458 | 607FACF11AFB9204008FA782 /* Release */ = { 459 | isa = XCBuildConfiguration; 460 | baseConfigurationReference = 0EF8B6951DE4C3E59431921F /* Pods-MBTextFieldWithInputValidator_Example.release.xcconfig */; 461 | buildSettings = { 462 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 463 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 464 | DEVELOPMENT_TEAM = J3TA3RL75G; 465 | INFOPLIST_FILE = MBTextFieldWithInputValidator/Info.plist; 466 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 467 | MODULE_NAME = ExampleApp; 468 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 469 | PRODUCT_NAME = "$(TARGET_NAME)"; 470 | SWIFT_VERSION = 3.0; 471 | }; 472 | name = Release; 473 | }; 474 | 607FACF31AFB9204008FA782 /* Debug */ = { 475 | isa = XCBuildConfiguration; 476 | buildSettings = { 477 | DEVELOPMENT_TEAM = J3TA3RL75G; 478 | FRAMEWORK_SEARCH_PATHS = ( 479 | "$(SDKROOT)/Developer/Library/Frameworks", 480 | "$(inherited)", 481 | ); 482 | GCC_PREPROCESSOR_DEFINITIONS = ( 483 | "DEBUG=1", 484 | "$(inherited)", 485 | ); 486 | INFOPLIST_FILE = Tests/Info.plist; 487 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 488 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 489 | PRODUCT_NAME = "$(TARGET_NAME)"; 490 | SWIFT_VERSION = 3.0; 491 | }; 492 | name = Debug; 493 | }; 494 | 607FACF41AFB9204008FA782 /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | buildSettings = { 497 | DEVELOPMENT_TEAM = J3TA3RL75G; 498 | FRAMEWORK_SEARCH_PATHS = ( 499 | "$(SDKROOT)/Developer/Library/Frameworks", 500 | "$(inherited)", 501 | ); 502 | INFOPLIST_FILE = Tests/Info.plist; 503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 504 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | SWIFT_VERSION = 3.0; 507 | }; 508 | name = Release; 509 | }; 510 | /* End XCBuildConfiguration section */ 511 | 512 | /* Begin XCConfigurationList section */ 513 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "MBTextFieldWithInputValidator" */ = { 514 | isa = XCConfigurationList; 515 | buildConfigurations = ( 516 | 607FACED1AFB9204008FA782 /* Debug */, 517 | 607FACEE1AFB9204008FA782 /* Release */, 518 | ); 519 | defaultConfigurationIsVisible = 0; 520 | defaultConfigurationName = Release; 521 | }; 522 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MBTextFieldWithInputValidator_Example" */ = { 523 | isa = XCConfigurationList; 524 | buildConfigurations = ( 525 | 607FACF01AFB9204008FA782 /* Debug */, 526 | 607FACF11AFB9204008FA782 /* Release */, 527 | ); 528 | defaultConfigurationIsVisible = 0; 529 | defaultConfigurationName = Release; 530 | }; 531 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "MBTextFieldWithInputValidator_Tests" */ = { 532 | isa = XCConfigurationList; 533 | buildConfigurations = ( 534 | 607FACF31AFB9204008FA782 /* Debug */, 535 | 607FACF41AFB9204008FA782 /* Release */, 536 | ); 537 | defaultConfigurationIsVisible = 0; 538 | defaultConfigurationName = Release; 539 | }; 540 | /* End XCConfigurationList section */ 541 | }; 542 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 543 | } 544 | -------------------------------------------------------------------------------- /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 | 07A12D92A6846BB02DC3A825BC7F68F3 /* Pods-MBTextFieldWithInputValidator_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B9B82401D3C2DB7B9DA7701315D71935 /* Pods-MBTextFieldWithInputValidator_Example-dummy.m */; }; 11 | 12D81D895896D60C878777E8A89DDCB7 /* UITextFieldValidatorExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47AE684C2B7B287C3E0413613A91EF8F /* UITextFieldValidatorExtension.swift */; }; 12 | 1F74714EF0585783F06C4860F28F62D9 /* MBTextFieldWithInputValidator-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B7C15B57EC4D65A76778D778A432E2E /* MBTextFieldWithInputValidator-dummy.m */; }; 13 | 237761932C18C2F392F83E30B53F0C5D /* MBTextFieldWithInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3144E4836A07E6ADC517FEF2E2D6CF59 /* MBTextFieldWithInputValidator.swift */; }; 14 | 24CCE4EA1D99EFA79A6C31A6F7EA05F2 /* MBPhoneInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 241D6387DE6A261CD46389EB3372E621 /* MBPhoneInputValidator.swift */; }; 15 | 351FBACF58BC353EFE78AC38B1313BA8 /* MBEmailInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DD2DD31BC1C5C912800106F42309FE8 /* MBEmailInputValidator.swift */; }; 16 | 3A16CDA75D8AFF0ED669A42C20B15AC2 /* UIViewGetControllerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ACFC4EFCAAAECDE97EB61C4BD73F646 /* UIViewGetControllerExtension.swift */; }; 17 | 43C4559C484B187E944DDFA8506C85E8 /* MBNumberInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 822C51866291484F2E80CB0DABB3A8D2 /* MBNumberInputValidator.swift */; }; 18 | 616305698B5CF3998DB33283B3D1402D /* MBAlphabetInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D12786EB338DFB08E5008E0F07456EB /* MBAlphabetInputValidator.swift */; }; 19 | 9AA63650CB0FC0712EFEDECFE2717147 /* MBInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD56DBAC8AC72CF9E56553E05F43E1F1 /* MBInputValidator.swift */; }; 20 | B01C9895EC962FA48396DC2E00EB1900 /* MBEmptyInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96206C46145D636D720AA3E8FC45E3F6 /* MBEmptyInputValidator.swift */; }; 21 | BB49E0170D7487A441A675198F4582B3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 22 | BC2D9B62041E24899364C01ABC426176 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 23 | C7904B5FBBDC5FDBF0E11BAD1A50A6ED /* MBPasswordInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7087465039890BC155392EFE42252ED9 /* MBPasswordInputValidator.swift */; }; 24 | C93751FEA4460FDDDE6063D92D3CC8EE /* Pods-MBTextFieldWithInputValidator_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 09F6EA1B1E947AC6F52E69675A98F4A0 /* Pods-MBTextFieldWithInputValidator_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 25 | CE4F49FF65CAC81991B11A97964B9170 /* MBZipCodeInputValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85F6476D3143196607078D46D1075E78 /* MBZipCodeInputValidator.swift */; }; 26 | CFB27FC1DDBF3286C264B93A4264FB88 /* MBTextFieldWithInputValidator-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C3DB8DE122FCA522C09C5F5DF3842281 /* MBTextFieldWithInputValidator-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 3F021356423E0AA1F626EA14418E9048 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 493F18582999560FA1181272FBA41FA3; 35 | remoteInfo = MBTextFieldWithInputValidator; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 09F6EA1B1E947AC6F52E69675A98F4A0 /* Pods-MBTextFieldWithInputValidator_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-MBTextFieldWithInputValidator_Example-umbrella.h"; sourceTree = ""; }; 41 | 0D12786EB338DFB08E5008E0F07456EB /* MBAlphabetInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBAlphabetInputValidator.swift; sourceTree = ""; }; 42 | 241D6387DE6A261CD46389EB3372E621 /* MBPhoneInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBPhoneInputValidator.swift; sourceTree = ""; }; 43 | 27576F63FBB7535EE7653E49153184B7 /* Pods-MBTextFieldWithInputValidator_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-MBTextFieldWithInputValidator_Example.modulemap"; sourceTree = ""; }; 44 | 3144E4836A07E6ADC517FEF2E2D6CF59 /* MBTextFieldWithInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBTextFieldWithInputValidator.swift; sourceTree = ""; }; 45 | 443D7BEFE2719131031CC17CC05DD0A0 /* MBTextFieldWithInputValidator-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MBTextFieldWithInputValidator-prefix.pch"; sourceTree = ""; }; 46 | 47AE684C2B7B287C3E0413613A91EF8F /* UITextFieldValidatorExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = UITextFieldValidatorExtension.swift; sourceTree = ""; }; 47 | 5B7C15B57EC4D65A76778D778A432E2E /* MBTextFieldWithInputValidator-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "MBTextFieldWithInputValidator-dummy.m"; sourceTree = ""; }; 48 | 5DD2DD31BC1C5C912800106F42309FE8 /* MBEmailInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBEmailInputValidator.swift; sourceTree = ""; }; 49 | 6607958D4B0619689266FFE8B226B414 /* Pods-MBTextFieldWithInputValidator_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MBTextFieldWithInputValidator_Example-frameworks.sh"; sourceTree = ""; }; 50 | 6ACFC4EFCAAAECDE97EB61C4BD73F646 /* UIViewGetControllerExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = UIViewGetControllerExtension.swift; sourceTree = ""; }; 51 | 7087465039890BC155392EFE42252ED9 /* MBPasswordInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBPasswordInputValidator.swift; sourceTree = ""; }; 52 | 822C51866291484F2E80CB0DABB3A8D2 /* MBNumberInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBNumberInputValidator.swift; sourceTree = ""; }; 53 | 85F6476D3143196607078D46D1075E78 /* MBZipCodeInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBZipCodeInputValidator.swift; sourceTree = ""; }; 54 | 8B0AC1540A31D57735079FB2EF78856F /* Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig"; sourceTree = ""; }; 55 | 8E744AC5E6199B5B4AF93F6AE55C2C20 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 57 | 96206C46145D636D720AA3E8FC45E3F6 /* MBEmptyInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBEmptyInputValidator.swift; sourceTree = ""; }; 58 | A82789FF998526D277F132DB64B18F32 /* Pods_MBTextFieldWithInputValidator_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_MBTextFieldWithInputValidator_Example.framework; path = "Pods-MBTextFieldWithInputValidator_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | B9B82401D3C2DB7B9DA7701315D71935 /* Pods-MBTextFieldWithInputValidator_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-MBTextFieldWithInputValidator_Example-dummy.m"; sourceTree = ""; }; 60 | BCFBE6A2840B187BD7D7E115B0C89D1D /* Pods-MBTextFieldWithInputValidator_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-MBTextFieldWithInputValidator_Example-acknowledgements.plist"; sourceTree = ""; }; 61 | C07D549A732A5A18030F1965665C12B6 /* Pods-MBTextFieldWithInputValidator_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-MBTextFieldWithInputValidator_Example-acknowledgements.markdown"; sourceTree = ""; }; 62 | C3DB8DE122FCA522C09C5F5DF3842281 /* MBTextFieldWithInputValidator-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MBTextFieldWithInputValidator-umbrella.h"; sourceTree = ""; }; 63 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 64 | CCE7A207432DF662A058AAA8EED5A087 /* Pods-MBTextFieldWithInputValidator_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-MBTextFieldWithInputValidator_Example-resources.sh"; sourceTree = ""; }; 65 | CD56DBAC8AC72CF9E56553E05F43E1F1 /* MBInputValidator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MBInputValidator.swift; sourceTree = ""; }; 66 | D647B750CA5DB1F78C0AD8846B3F4C4D /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 67 | D9F23D86289F1CCF7996B63829BCF755 /* MBTextFieldWithInputValidator.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = MBTextFieldWithInputValidator.xcconfig; sourceTree = ""; }; 68 | EF878859FD844401A919EF90A8E1A814 /* MBTextFieldWithInputValidator.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = MBTextFieldWithInputValidator.modulemap; sourceTree = ""; }; 69 | F352FD5348205DC67E80D1CF2404590F /* Pods-MBTextFieldWithInputValidator_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-MBTextFieldWithInputValidator_Example.release.xcconfig"; sourceTree = ""; }; 70 | F43714EB3E56312E4588B5FC5C710FFB /* MBTextFieldWithInputValidator.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = MBTextFieldWithInputValidator.framework; path = MBTextFieldWithInputValidator.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 71 | /* End PBXFileReference section */ 72 | 73 | /* Begin PBXFrameworksBuildPhase section */ 74 | 447EABBCF1789240774070214D02551E /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | BC2D9B62041E24899364C01ABC426176 /* Foundation.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 570DC492C23D6913D8732283CAB1F87C /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | BB49E0170D7487A441A675198F4582B3 /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXFrameworksBuildPhase section */ 91 | 92 | /* Begin PBXGroup section */ 93 | 14C24038D4D3F699B55ECAAD8C9B34DF /* Classes */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 9F68F381387D657AA2BA6256A579B4E0 /* Extension */, 97 | 2537ABFB3BB773267512981F286DFDB7 /* Validators */, 98 | B4D64AFBCA4EDA451C0E0F0421088970 /* View */, 99 | ); 100 | name = Classes; 101 | path = Classes; 102 | sourceTree = ""; 103 | }; 104 | 2537ABFB3BB773267512981F286DFDB7 /* Validators */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 0D12786EB338DFB08E5008E0F07456EB /* MBAlphabetInputValidator.swift */, 108 | 5DD2DD31BC1C5C912800106F42309FE8 /* MBEmailInputValidator.swift */, 109 | 96206C46145D636D720AA3E8FC45E3F6 /* MBEmptyInputValidator.swift */, 110 | CD56DBAC8AC72CF9E56553E05F43E1F1 /* MBInputValidator.swift */, 111 | 822C51866291484F2E80CB0DABB3A8D2 /* MBNumberInputValidator.swift */, 112 | 7087465039890BC155392EFE42252ED9 /* MBPasswordInputValidator.swift */, 113 | 241D6387DE6A261CD46389EB3372E621 /* MBPhoneInputValidator.swift */, 114 | 85F6476D3143196607078D46D1075E78 /* MBZipCodeInputValidator.swift */, 115 | ); 116 | name = Validators; 117 | path = Validators; 118 | sourceTree = ""; 119 | }; 120 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 124 | ); 125 | name = iOS; 126 | sourceTree = ""; 127 | }; 128 | 7DB346D0F39D3F0E887471402A8071AB = { 129 | isa = PBXGroup; 130 | children = ( 131 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 132 | CF8BE42B9B80A4495B5419770D7F6548 /* Development Pods */, 133 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 134 | E47D5B389D13311566DD18CC4903D012 /* Products */, 135 | CAB06C3F76A69AA07243CD2C8D3250D6 /* Targets Support Files */, 136 | ); 137 | sourceTree = ""; 138 | }; 139 | 8A9FAEC38781DAC2589D8753EB86D40B /* Support Files */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 8E744AC5E6199B5B4AF93F6AE55C2C20 /* Info.plist */, 143 | EF878859FD844401A919EF90A8E1A814 /* MBTextFieldWithInputValidator.modulemap */, 144 | D9F23D86289F1CCF7996B63829BCF755 /* MBTextFieldWithInputValidator.xcconfig */, 145 | 5B7C15B57EC4D65A76778D778A432E2E /* MBTextFieldWithInputValidator-dummy.m */, 146 | 443D7BEFE2719131031CC17CC05DD0A0 /* MBTextFieldWithInputValidator-prefix.pch */, 147 | C3DB8DE122FCA522C09C5F5DF3842281 /* MBTextFieldWithInputValidator-umbrella.h */, 148 | ); 149 | name = "Support Files"; 150 | path = "Example/Pods/Target Support Files/MBTextFieldWithInputValidator"; 151 | sourceTree = ""; 152 | }; 153 | 8C411CE9506451BD8AFBD8EE7EFCAE0E /* Pods-MBTextFieldWithInputValidator_Example */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | D647B750CA5DB1F78C0AD8846B3F4C4D /* Info.plist */, 157 | 27576F63FBB7535EE7653E49153184B7 /* Pods-MBTextFieldWithInputValidator_Example.modulemap */, 158 | C07D549A732A5A18030F1965665C12B6 /* Pods-MBTextFieldWithInputValidator_Example-acknowledgements.markdown */, 159 | BCFBE6A2840B187BD7D7E115B0C89D1D /* Pods-MBTextFieldWithInputValidator_Example-acknowledgements.plist */, 160 | B9B82401D3C2DB7B9DA7701315D71935 /* Pods-MBTextFieldWithInputValidator_Example-dummy.m */, 161 | 6607958D4B0619689266FFE8B226B414 /* Pods-MBTextFieldWithInputValidator_Example-frameworks.sh */, 162 | CCE7A207432DF662A058AAA8EED5A087 /* Pods-MBTextFieldWithInputValidator_Example-resources.sh */, 163 | 09F6EA1B1E947AC6F52E69675A98F4A0 /* Pods-MBTextFieldWithInputValidator_Example-umbrella.h */, 164 | 8B0AC1540A31D57735079FB2EF78856F /* Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig */, 165 | F352FD5348205DC67E80D1CF2404590F /* Pods-MBTextFieldWithInputValidator_Example.release.xcconfig */, 166 | ); 167 | name = "Pods-MBTextFieldWithInputValidator_Example"; 168 | path = "Target Support Files/Pods-MBTextFieldWithInputValidator_Example"; 169 | sourceTree = ""; 170 | }; 171 | 9F68F381387D657AA2BA6256A579B4E0 /* Extension */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | 47AE684C2B7B287C3E0413613A91EF8F /* UITextFieldValidatorExtension.swift */, 175 | 6ACFC4EFCAAAECDE97EB61C4BD73F646 /* UIViewGetControllerExtension.swift */, 176 | ); 177 | name = Extension; 178 | path = Extension; 179 | sourceTree = ""; 180 | }; 181 | B4D64AFBCA4EDA451C0E0F0421088970 /* View */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 3144E4836A07E6ADC517FEF2E2D6CF59 /* MBTextFieldWithInputValidator.swift */, 185 | ); 186 | name = View; 187 | path = View; 188 | sourceTree = ""; 189 | }; 190 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 194 | ); 195 | name = Frameworks; 196 | sourceTree = ""; 197 | }; 198 | BFFC9E2986F9418A587C33818451F5CE /* MBTextFieldWithInputValidator */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 14C24038D4D3F699B55ECAAD8C9B34DF /* Classes */, 202 | ); 203 | name = MBTextFieldWithInputValidator; 204 | path = MBTextFieldWithInputValidator; 205 | sourceTree = ""; 206 | }; 207 | CAB06C3F76A69AA07243CD2C8D3250D6 /* Targets Support Files */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | 8C411CE9506451BD8AFBD8EE7EFCAE0E /* Pods-MBTextFieldWithInputValidator_Example */, 211 | ); 212 | name = "Targets Support Files"; 213 | sourceTree = ""; 214 | }; 215 | CF8BE42B9B80A4495B5419770D7F6548 /* Development Pods */ = { 216 | isa = PBXGroup; 217 | children = ( 218 | D85EC0F49F52DD94D7EB720B73351F16 /* MBTextFieldWithInputValidator */, 219 | ); 220 | name = "Development Pods"; 221 | sourceTree = ""; 222 | }; 223 | D85EC0F49F52DD94D7EB720B73351F16 /* MBTextFieldWithInputValidator */ = { 224 | isa = PBXGroup; 225 | children = ( 226 | BFFC9E2986F9418A587C33818451F5CE /* MBTextFieldWithInputValidator */, 227 | 8A9FAEC38781DAC2589D8753EB86D40B /* Support Files */, 228 | ); 229 | name = MBTextFieldWithInputValidator; 230 | path = ../..; 231 | sourceTree = ""; 232 | }; 233 | E47D5B389D13311566DD18CC4903D012 /* Products */ = { 234 | isa = PBXGroup; 235 | children = ( 236 | F43714EB3E56312E4588B5FC5C710FFB /* MBTextFieldWithInputValidator.framework */, 237 | A82789FF998526D277F132DB64B18F32 /* Pods_MBTextFieldWithInputValidator_Example.framework */, 238 | ); 239 | name = Products; 240 | sourceTree = ""; 241 | }; 242 | /* End PBXGroup section */ 243 | 244 | /* Begin PBXHeadersBuildPhase section */ 245 | 165693831DD66117FDF33EF7B1EB227C /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | CFB27FC1DDBF3286C264B93A4264FB88 /* MBTextFieldWithInputValidator-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | DA25EDCFEF8137B70A473F45E5120ED0 /* Headers */ = { 254 | isa = PBXHeadersBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | C93751FEA4460FDDDE6063D92D3CC8EE /* Pods-MBTextFieldWithInputValidator_Example-umbrella.h in Headers */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXHeadersBuildPhase section */ 262 | 263 | /* Begin PBXNativeTarget section */ 264 | 493F18582999560FA1181272FBA41FA3 /* MBTextFieldWithInputValidator */ = { 265 | isa = PBXNativeTarget; 266 | buildConfigurationList = B817128A7EF1D766C62EDC50203B54A4 /* Build configuration list for PBXNativeTarget "MBTextFieldWithInputValidator" */; 267 | buildPhases = ( 268 | 5BB80F537E2CDD51DAE4A15941B98BEA /* Sources */, 269 | 447EABBCF1789240774070214D02551E /* Frameworks */, 270 | 165693831DD66117FDF33EF7B1EB227C /* Headers */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | ); 276 | name = MBTextFieldWithInputValidator; 277 | productName = MBTextFieldWithInputValidator; 278 | productReference = F43714EB3E56312E4588B5FC5C710FFB /* MBTextFieldWithInputValidator.framework */; 279 | productType = "com.apple.product-type.framework"; 280 | }; 281 | BD0DF22D9A5EAB8E52E5390592A8937D /* Pods-MBTextFieldWithInputValidator_Example */ = { 282 | isa = PBXNativeTarget; 283 | buildConfigurationList = 87821A2BB3804C3BDCCFEBFA26B6DF6D /* Build configuration list for PBXNativeTarget "Pods-MBTextFieldWithInputValidator_Example" */; 284 | buildPhases = ( 285 | 08A8095A0DB1903BC2364C17C7F30872 /* Sources */, 286 | 570DC492C23D6913D8732283CAB1F87C /* Frameworks */, 287 | DA25EDCFEF8137B70A473F45E5120ED0 /* Headers */, 288 | ); 289 | buildRules = ( 290 | ); 291 | dependencies = ( 292 | 3662579DBBFDCBCE5C6A9B22BDCBDA3B /* PBXTargetDependency */, 293 | ); 294 | name = "Pods-MBTextFieldWithInputValidator_Example"; 295 | productName = "Pods-MBTextFieldWithInputValidator_Example"; 296 | productReference = A82789FF998526D277F132DB64B18F32 /* Pods_MBTextFieldWithInputValidator_Example.framework */; 297 | productType = "com.apple.product-type.framework"; 298 | }; 299 | /* End PBXNativeTarget section */ 300 | 301 | /* Begin PBXProject section */ 302 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 303 | isa = PBXProject; 304 | attributes = { 305 | LastSwiftUpdateCheck = 0730; 306 | LastUpgradeCheck = 0700; 307 | }; 308 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 309 | compatibilityVersion = "Xcode 3.2"; 310 | developmentRegion = English; 311 | hasScannedForEncodings = 0; 312 | knownRegions = ( 313 | en, 314 | ); 315 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 316 | productRefGroup = E47D5B389D13311566DD18CC4903D012 /* Products */; 317 | projectDirPath = ""; 318 | projectRoot = ""; 319 | targets = ( 320 | 493F18582999560FA1181272FBA41FA3 /* MBTextFieldWithInputValidator */, 321 | BD0DF22D9A5EAB8E52E5390592A8937D /* Pods-MBTextFieldWithInputValidator_Example */, 322 | ); 323 | }; 324 | /* End PBXProject section */ 325 | 326 | /* Begin PBXSourcesBuildPhase section */ 327 | 08A8095A0DB1903BC2364C17C7F30872 /* Sources */ = { 328 | isa = PBXSourcesBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | 07A12D92A6846BB02DC3A825BC7F68F3 /* Pods-MBTextFieldWithInputValidator_Example-dummy.m in Sources */, 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | }; 335 | 5BB80F537E2CDD51DAE4A15941B98BEA /* Sources */ = { 336 | isa = PBXSourcesBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | 616305698B5CF3998DB33283B3D1402D /* MBAlphabetInputValidator.swift in Sources */, 340 | 351FBACF58BC353EFE78AC38B1313BA8 /* MBEmailInputValidator.swift in Sources */, 341 | B01C9895EC962FA48396DC2E00EB1900 /* MBEmptyInputValidator.swift in Sources */, 342 | 9AA63650CB0FC0712EFEDECFE2717147 /* MBInputValidator.swift in Sources */, 343 | 43C4559C484B187E944DDFA8506C85E8 /* MBNumberInputValidator.swift in Sources */, 344 | C7904B5FBBDC5FDBF0E11BAD1A50A6ED /* MBPasswordInputValidator.swift in Sources */, 345 | 24CCE4EA1D99EFA79A6C31A6F7EA05F2 /* MBPhoneInputValidator.swift in Sources */, 346 | 1F74714EF0585783F06C4860F28F62D9 /* MBTextFieldWithInputValidator-dummy.m in Sources */, 347 | 237761932C18C2F392F83E30B53F0C5D /* MBTextFieldWithInputValidator.swift in Sources */, 348 | CE4F49FF65CAC81991B11A97964B9170 /* MBZipCodeInputValidator.swift in Sources */, 349 | 12D81D895896D60C878777E8A89DDCB7 /* UITextFieldValidatorExtension.swift in Sources */, 350 | 3A16CDA75D8AFF0ED669A42C20B15AC2 /* UIViewGetControllerExtension.swift in Sources */, 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | }; 354 | /* End PBXSourcesBuildPhase section */ 355 | 356 | /* Begin PBXTargetDependency section */ 357 | 3662579DBBFDCBCE5C6A9B22BDCBDA3B /* PBXTargetDependency */ = { 358 | isa = PBXTargetDependency; 359 | name = MBTextFieldWithInputValidator; 360 | target = 493F18582999560FA1181272FBA41FA3 /* MBTextFieldWithInputValidator */; 361 | targetProxy = 3F021356423E0AA1F626EA14418E9048 /* PBXContainerItemProxy */; 362 | }; 363 | /* End PBXTargetDependency section */ 364 | 365 | /* Begin XCBuildConfiguration section */ 366 | 01FA006F3C88C83405BFD55ECF5E8047 /* Release */ = { 367 | isa = XCBuildConfiguration; 368 | baseConfigurationReference = D9F23D86289F1CCF7996B63829BCF755 /* MBTextFieldWithInputValidator.xcconfig */; 369 | buildSettings = { 370 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 371 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 372 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 373 | CURRENT_PROJECT_VERSION = 1; 374 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 375 | DEFINES_MODULE = YES; 376 | DYLIB_COMPATIBILITY_VERSION = 1; 377 | DYLIB_CURRENT_VERSION = 1; 378 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 379 | ENABLE_STRICT_OBJC_MSGSEND = YES; 380 | GCC_NO_COMMON_BLOCKS = YES; 381 | GCC_PREFIX_HEADER = "Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator-prefix.pch"; 382 | INFOPLIST_FILE = "Target Support Files/MBTextFieldWithInputValidator/Info.plist"; 383 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 384 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 385 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 386 | MODULEMAP_FILE = "Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.modulemap"; 387 | MTL_ENABLE_DEBUG_INFO = NO; 388 | PRODUCT_NAME = MBTextFieldWithInputValidator; 389 | SDKROOT = iphoneos; 390 | SKIP_INSTALL = YES; 391 | SWIFT_VERSION = 3.0; 392 | TARGETED_DEVICE_FAMILY = "1,2"; 393 | VERSIONING_SYSTEM = "apple-generic"; 394 | VERSION_INFO_PREFIX = ""; 395 | }; 396 | name = Release; 397 | }; 398 | 59996A1EE8D96F2977AC901672E65ED7 /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | baseConfigurationReference = D9F23D86289F1CCF7996B63829BCF755 /* MBTextFieldWithInputValidator.xcconfig */; 401 | buildSettings = { 402 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 403 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 404 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 405 | CURRENT_PROJECT_VERSION = 1; 406 | DEBUG_INFORMATION_FORMAT = dwarf; 407 | DEFINES_MODULE = YES; 408 | DYLIB_COMPATIBILITY_VERSION = 1; 409 | DYLIB_CURRENT_VERSION = 1; 410 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 411 | ENABLE_STRICT_OBJC_MSGSEND = YES; 412 | GCC_NO_COMMON_BLOCKS = YES; 413 | GCC_PREFIX_HEADER = "Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator-prefix.pch"; 414 | INFOPLIST_FILE = "Target Support Files/MBTextFieldWithInputValidator/Info.plist"; 415 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 416 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 418 | MODULEMAP_FILE = "Target Support Files/MBTextFieldWithInputValidator/MBTextFieldWithInputValidator.modulemap"; 419 | MTL_ENABLE_DEBUG_INFO = YES; 420 | PRODUCT_NAME = MBTextFieldWithInputValidator; 421 | SDKROOT = iphoneos; 422 | SKIP_INSTALL = YES; 423 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 424 | SWIFT_VERSION = 3.0; 425 | TARGETED_DEVICE_FAMILY = "1,2"; 426 | VERSIONING_SYSTEM = "apple-generic"; 427 | VERSION_INFO_PREFIX = ""; 428 | }; 429 | name = Debug; 430 | }; 431 | 624FFA459F797993C6CA69B5508ED50F /* Release */ = { 432 | isa = XCBuildConfiguration; 433 | baseConfigurationReference = F352FD5348205DC67E80D1CF2404590F /* Pods-MBTextFieldWithInputValidator_Example.release.xcconfig */; 434 | buildSettings = { 435 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 436 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 437 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 438 | CURRENT_PROJECT_VERSION = 1; 439 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 440 | DEFINES_MODULE = YES; 441 | DYLIB_COMPATIBILITY_VERSION = 1; 442 | DYLIB_CURRENT_VERSION = 1; 443 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 444 | ENABLE_STRICT_OBJC_MSGSEND = YES; 445 | GCC_NO_COMMON_BLOCKS = YES; 446 | INFOPLIST_FILE = "Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Info.plist"; 447 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 448 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 449 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 450 | MACH_O_TYPE = staticlib; 451 | MODULEMAP_FILE = "Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example.modulemap"; 452 | MTL_ENABLE_DEBUG_INFO = NO; 453 | OTHER_LDFLAGS = ""; 454 | OTHER_LIBTOOLFLAGS = ""; 455 | PODS_ROOT = "$(SRCROOT)"; 456 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 457 | PRODUCT_NAME = Pods_MBTextFieldWithInputValidator_Example; 458 | SDKROOT = iphoneos; 459 | SKIP_INSTALL = YES; 460 | TARGETED_DEVICE_FAMILY = "1,2"; 461 | VERSIONING_SYSTEM = "apple-generic"; 462 | VERSION_INFO_PREFIX = ""; 463 | }; 464 | name = Release; 465 | }; 466 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | buildSettings = { 469 | ALWAYS_SEARCH_USER_PATHS = NO; 470 | CLANG_ANALYZER_NONNULL = YES; 471 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 472 | CLANG_CXX_LIBRARY = "libc++"; 473 | CLANG_ENABLE_MODULES = YES; 474 | CLANG_ENABLE_OBJC_ARC = YES; 475 | CLANG_WARN_BOOL_CONVERSION = YES; 476 | CLANG_WARN_CONSTANT_CONVERSION = YES; 477 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 478 | CLANG_WARN_EMPTY_BODY = YES; 479 | CLANG_WARN_ENUM_CONVERSION = YES; 480 | CLANG_WARN_INT_CONVERSION = YES; 481 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 482 | CLANG_WARN_UNREACHABLE_CODE = YES; 483 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 484 | CODE_SIGNING_REQUIRED = NO; 485 | COPY_PHASE_STRIP = YES; 486 | ENABLE_NS_ASSERTIONS = NO; 487 | GCC_C_LANGUAGE_STANDARD = gnu99; 488 | GCC_PREPROCESSOR_DEFINITIONS = ( 489 | "POD_CONFIGURATION_RELEASE=1", 490 | "$(inherited)", 491 | ); 492 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 493 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 494 | GCC_WARN_UNDECLARED_SELECTOR = YES; 495 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 496 | GCC_WARN_UNUSED_FUNCTION = YES; 497 | GCC_WARN_UNUSED_VARIABLE = YES; 498 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 499 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 500 | STRIP_INSTALLED_PRODUCT = NO; 501 | SYMROOT = "${SRCROOT}/../build"; 502 | VALIDATE_PRODUCT = YES; 503 | }; 504 | name = Release; 505 | }; 506 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */ = { 507 | isa = XCBuildConfiguration; 508 | buildSettings = { 509 | ALWAYS_SEARCH_USER_PATHS = NO; 510 | CLANG_ANALYZER_NONNULL = YES; 511 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 512 | CLANG_CXX_LIBRARY = "libc++"; 513 | CLANG_ENABLE_MODULES = YES; 514 | CLANG_ENABLE_OBJC_ARC = YES; 515 | CLANG_WARN_BOOL_CONVERSION = YES; 516 | CLANG_WARN_CONSTANT_CONVERSION = YES; 517 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 518 | CLANG_WARN_EMPTY_BODY = YES; 519 | CLANG_WARN_ENUM_CONVERSION = YES; 520 | CLANG_WARN_INT_CONVERSION = YES; 521 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 522 | CLANG_WARN_UNREACHABLE_CODE = YES; 523 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 524 | CODE_SIGNING_REQUIRED = NO; 525 | COPY_PHASE_STRIP = NO; 526 | ENABLE_TESTABILITY = YES; 527 | GCC_C_LANGUAGE_STANDARD = gnu99; 528 | GCC_DYNAMIC_NO_PIC = NO; 529 | GCC_OPTIMIZATION_LEVEL = 0; 530 | GCC_PREPROCESSOR_DEFINITIONS = ( 531 | "POD_CONFIGURATION_DEBUG=1", 532 | "DEBUG=1", 533 | "$(inherited)", 534 | ); 535 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 536 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 537 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 538 | GCC_WARN_UNDECLARED_SELECTOR = YES; 539 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 540 | GCC_WARN_UNUSED_FUNCTION = YES; 541 | GCC_WARN_UNUSED_VARIABLE = YES; 542 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 543 | ONLY_ACTIVE_ARCH = YES; 544 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 545 | STRIP_INSTALLED_PRODUCT = NO; 546 | SYMROOT = "${SRCROOT}/../build"; 547 | }; 548 | name = Debug; 549 | }; 550 | B13C844E4E8A48E927BE447443149FB6 /* Debug */ = { 551 | isa = XCBuildConfiguration; 552 | baseConfigurationReference = 8B0AC1540A31D57735079FB2EF78856F /* Pods-MBTextFieldWithInputValidator_Example.debug.xcconfig */; 553 | buildSettings = { 554 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 555 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 556 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 557 | CURRENT_PROJECT_VERSION = 1; 558 | DEBUG_INFORMATION_FORMAT = dwarf; 559 | DEFINES_MODULE = YES; 560 | DYLIB_COMPATIBILITY_VERSION = 1; 561 | DYLIB_CURRENT_VERSION = 1; 562 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 563 | ENABLE_STRICT_OBJC_MSGSEND = YES; 564 | GCC_NO_COMMON_BLOCKS = YES; 565 | INFOPLIST_FILE = "Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Info.plist"; 566 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 567 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 568 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 569 | MACH_O_TYPE = staticlib; 570 | MODULEMAP_FILE = "Target Support Files/Pods-MBTextFieldWithInputValidator_Example/Pods-MBTextFieldWithInputValidator_Example.modulemap"; 571 | MTL_ENABLE_DEBUG_INFO = YES; 572 | OTHER_LDFLAGS = ""; 573 | OTHER_LIBTOOLFLAGS = ""; 574 | PODS_ROOT = "$(SRCROOT)"; 575 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 576 | PRODUCT_NAME = Pods_MBTextFieldWithInputValidator_Example; 577 | SDKROOT = iphoneos; 578 | SKIP_INSTALL = YES; 579 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 580 | TARGETED_DEVICE_FAMILY = "1,2"; 581 | VERSIONING_SYSTEM = "apple-generic"; 582 | VERSION_INFO_PREFIX = ""; 583 | }; 584 | name = Debug; 585 | }; 586 | /* End XCBuildConfiguration section */ 587 | 588 | /* Begin XCConfigurationList section */ 589 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 590 | isa = XCConfigurationList; 591 | buildConfigurations = ( 592 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */, 593 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */, 594 | ); 595 | defaultConfigurationIsVisible = 0; 596 | defaultConfigurationName = Release; 597 | }; 598 | 87821A2BB3804C3BDCCFEBFA26B6DF6D /* Build configuration list for PBXNativeTarget "Pods-MBTextFieldWithInputValidator_Example" */ = { 599 | isa = XCConfigurationList; 600 | buildConfigurations = ( 601 | B13C844E4E8A48E927BE447443149FB6 /* Debug */, 602 | 624FFA459F797993C6CA69B5508ED50F /* Release */, 603 | ); 604 | defaultConfigurationIsVisible = 0; 605 | defaultConfigurationName = Release; 606 | }; 607 | B817128A7EF1D766C62EDC50203B54A4 /* Build configuration list for PBXNativeTarget "MBTextFieldWithInputValidator" */ = { 608 | isa = XCConfigurationList; 609 | buildConfigurations = ( 610 | 59996A1EE8D96F2977AC901672E65ED7 /* Debug */, 611 | 01FA006F3C88C83405BFD55ECF5E8047 /* Release */, 612 | ); 613 | defaultConfigurationIsVisible = 0; 614 | defaultConfigurationName = Release; 615 | }; 616 | /* End XCConfigurationList section */ 617 | }; 618 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 619 | } 620 | --------------------------------------------------------------------------------