├── NumberField ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── UIControlEventsExtension.swift │ ├── FakeCursor.swift │ ├── NumberKeyboard.swift │ ├── NumberFieldOld.swift │ ├── NumberField.swift │ └── NumberKeyboard.xib ├── _Pods.xcodeproj ├── .gitattributes ├── DEMO.gif ├── LabelGuide.png ├── Example ├── Pods │ ├── Target Support Files │ │ ├── NumberField │ │ │ ├── NumberField.modulemap │ │ │ ├── NumberField-dummy.m │ │ │ ├── NumberField-prefix.pch │ │ │ ├── NumberField-umbrella.h │ │ │ ├── NumberField.xcconfig │ │ │ ├── ResourceBundle-NumberField-Info.plist │ │ │ └── Info.plist │ │ ├── Pods-NumberField_Tests │ │ │ ├── Pods-NumberField_Tests.modulemap │ │ │ ├── Pods-NumberField_Tests-acknowledgements.markdown │ │ │ ├── Pods-NumberField_Tests-dummy.m │ │ │ ├── Pods-NumberField_Tests-umbrella.h │ │ │ ├── Pods-NumberField_Tests.debug.xcconfig │ │ │ ├── Pods-NumberField_Tests.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-NumberField_Tests-acknowledgements.plist │ │ │ ├── Pods-NumberField_Tests-frameworks.sh │ │ │ └── Pods-NumberField_Tests-resources.sh │ │ └── Pods-NumberField_Example │ │ │ ├── Pods-NumberField_Example.modulemap │ │ │ ├── Pods-NumberField_Example-dummy.m │ │ │ ├── Pods-NumberField_Example-umbrella.h │ │ │ ├── Pods-NumberField_Example.debug.xcconfig │ │ │ ├── Pods-NumberField_Example.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-NumberField_Example-acknowledgements.markdown │ │ │ ├── Pods-NumberField_Example-acknowledgements.plist │ │ │ ├── Pods-NumberField_Example-frameworks.sh │ │ │ └── Pods-NumberField_Example-resources.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── NumberField.podspec.json │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── Podfile ├── NumberField.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── NumberField-Example.xcscheme │ └── project.pbxproj ├── NumberField.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Podfile.lock ├── NumberField │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── Tests.swift ├── .travis.yml ├── .gitignore ├── LICENSE ├── NumberField.podspec └── README.md /NumberField/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NumberField/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | Example/* linguist-vendored 2 | -------------------------------------------------------------------------------- /DEMO.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethTsang/NumberField/HEAD/DEMO.gif -------------------------------------------------------------------------------- /LabelGuide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennethTsang/NumberField/HEAD/LabelGuide.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/NumberField/NumberField.modulemap: -------------------------------------------------------------------------------- 1 | framework module NumberField { 2 | umbrella header "NumberField-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/NumberField/NumberField-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_NumberField : NSObject 3 | @end 4 | @implementation PodsDummy_NumberField 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'NumberField_Example' do 4 | pod 'NumberField', :path => '../' 5 | 6 | target 'NumberField_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_NumberField_Tests { 2 | umbrella header "Pods-NumberField_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/NumberField.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_NumberField_Example { 2 | umbrella header "Pods-NumberField_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_NumberField_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_NumberField_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_NumberField_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_NumberField_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/NumberField/NumberField-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/NumberField.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/NumberField.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /NumberField/Classes/UIControlEventsExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIControlEventsExtension.swift 3 | // Pods 4 | // 5 | // Created by Tsang Kenneth on 22/3/2017. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIControl.Event { 12 | public static var editingRejected: UIControl.Event { return UIControl.Event(rawValue: 0b0001 << 24) } 13 | } 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - NumberField (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - NumberField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | NumberField: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | NumberField: cd95bb01d7632226faac893ead3918ecd40a97fa 13 | 14 | PODFILE CHECKSUM: 41210a980dc6ac97c0f2f0fffde4574f60d10a96 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - NumberField (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - NumberField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | NumberField: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | NumberField: cd95bb01d7632226faac893ead3918ecd40a97fa 13 | 14 | PODFILE CHECKSUM: 41210a980dc6ac97c0f2f0fffde4574f60d10a96 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/NumberField/NumberField-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 NumberFieldVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char NumberFieldVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_NumberField_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_NumberField_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_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_NumberField_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_NumberField_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/NumberField.xcworkspace -scheme NumberField-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/NumberField" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/NumberField/NumberField.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/NumberField" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/NumberField/NumberField.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/NumberField/NumberField.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/NumberField 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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/NumberField" 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/NumberField/NumberField.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "NumberField" 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-NumberField_Example/Pods-NumberField_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/NumberField" 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/NumberField/NumberField.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "NumberField" 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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/NumberField.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NumberField", 3 | "version": "0.1.0", 4 | "summary": "A short description of NumberField.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/kenthth@gmail.com/NumberField", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "kenthth@gmail.com": "kenneth.tsang@hcg.com.hk" 13 | }, 14 | "source": { 15 | "git": "https://github.com/kenthth@gmail.com/NumberField.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "source_files": "NumberField/Classes/**/*", 22 | "resource_bundles": { 23 | "NumberField": [ 24 | "NumberField/Classes/*.xib" 25 | ] 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Example/NumberField/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/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import NumberField 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/NumberField/ResourceBundle-NumberField-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleIdentifier 8 | ${PRODUCT_BUNDLE_IDENTIFIER} 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | ${PRODUCT_NAME} 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 0.1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/NumberField/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.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 kenthth@gmail.com 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/NumberField/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 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## NumberField 5 | 6 | Copyright (c) 2017 kenthth@gmail.com 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 | -------------------------------------------------------------------------------- /NumberField/Classes/FakeCursor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NumberFieldCursor.swift 3 | // Pods 4 | // 5 | // Created by Tsang Kenneth on 20/3/2017. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | final class FakeCursor: UIView { 12 | var timer: Timer? 13 | 14 | 15 | override var intrinsicContentSize: CGSize { 16 | return CGSize(width: 2, height: UIView.noIntrinsicMetric) 17 | } 18 | 19 | override var isHidden: Bool { 20 | didSet { 21 | if isHidden { 22 | timer?.invalidate() 23 | } else { 24 | if (timer?.isValid ?? false) == false { 25 | alpha = 1 26 | timer = Timer.scheduledTimer(timeInterval: 0.5, target: self, selector: #selector(flash), userInfo: nil, repeats: true) 27 | } 28 | } 29 | } 30 | } 31 | 32 | @objc func flash(timer: Timer) { 33 | self.alpha = self.alpha > 0 ? 0 : 1 34 | } 35 | 36 | override init(frame: CGRect) { 37 | super.init(frame: frame) 38 | commonInit() 39 | } 40 | 41 | required init?(coder aDecoder: NSCoder) { 42 | super.init(coder: aDecoder) 43 | commonInit() 44 | } 45 | 46 | private func commonInit() { 47 | isHidden = true 48 | } 49 | 50 | override func layoutSubviews() { 51 | super.layoutSubviews() 52 | backgroundColor = tintColor 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /NumberField/Classes/NumberKeyboard.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NumberKeyboard.swift 3 | // mos 4 | // 5 | // Created by Kenneth on 8/12/2016. 6 | // Copyright © 2016 HCG. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol NumberKeyboardDelegate: class { 12 | func numberTapped(number: Int) 13 | func specialKeyTapped() 14 | func backspaceTapped() 15 | } 16 | 17 | class NumberKeyboard: UIView { 18 | weak var delegate: NumberKeyboardDelegate? 19 | @IBOutlet weak var specialKeyButton: UIButton! 20 | @IBOutlet var numberButtons: [UIButton]! 21 | @IBOutlet weak var backspaceButton: UIButton! 22 | 23 | required init?(coder aDecoder: NSCoder) { 24 | super.init(coder: aDecoder) 25 | commonInit() 26 | } 27 | 28 | override init(frame: CGRect) { 29 | super.init(frame: frame) 30 | commonInit() 31 | } 32 | 33 | private func commonInit() { 34 | let bundle = Bundle(for: NumberKeyboard.classForCoder()) 35 | let view = bundle.loadNibNamed("NumberKeyboard", owner: self, options: nil)?.first as! UIView 36 | self.addSubview(view) 37 | view.frame = self.bounds 38 | } 39 | 40 | // MARK: Actions 41 | @IBAction func keyTapped(sender: UIButton) { 42 | self.delegate?.numberTapped(number: Int(sender.titleLabel!.text!)!) 43 | } 44 | 45 | @IBAction func specialKeyTapped(sender: UIButton) { 46 | self.delegate?.specialKeyTapped() 47 | } 48 | 49 | @IBAction func backspace(sender: UIButton) { 50 | self.delegate?.backspaceTapped() 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /NumberField.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint NumberField.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'NumberField' 11 | s.version = '0.4.2' 12 | s.summary = 'Numeric field with Numpad keyboard on both iPhone and iPad' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | Numeric field with Numpad keyboard on both iPhone and iPad. 22 | DESC 23 | 24 | s.homepage = 'https://github.com/KennethTsang/NumberField' 25 | s.screenshots = "https://raw.githubusercontent.com/KennethTsang/NumberField/master/DEMO.gif" 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { "Kenneth Tsang" => "kenneth.tsang@me.com" } 28 | s.source = { :git => "https://github.com/KennethTsang/NumberField.git", :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '9.0' 32 | s.swift_version = '4.2' 33 | 34 | s.source_files = 'NumberField/Classes/**/*' 35 | 36 | s.resource_bundles = { 37 | 'NumberField' => ['NumberField/Classes/*.xib'] 38 | } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | # s.frameworks = 'UIKit', 'MapKit' 42 | # s.dependency 'AFNetworking', '~> 2.3' 43 | end 44 | -------------------------------------------------------------------------------- /Example/NumberField/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // NumberField 4 | // 5 | // Created by kenthth@gmail.com on 03/20/2017. 6 | // Copyright (c) 2017 kenthth@gmail.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_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) 2017 kenthth@gmail.com <kenneth.tsang@hcg.com.hk> 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 | NumberField 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/NumberField/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_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/NumberField/NumberField.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/NumberField/NumberField.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/NumberField.xcodeproj/xcshareddata/xcschemes/NumberField-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-NumberField_Tests/Pods-NumberField_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 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/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NumberField 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/NumberField.svg?style=flat)](http://cocoapods.org/pods/NumberField) 4 | [![License](https://img.shields.io/cocoapods/l/NumberField.svg?style=flat)](http://cocoapods.org/pods/NumberField) 5 | [![Platform](https://img.shields.io/cocoapods/p/NumberField.svg?style=flat)](http://cocoapods.org/pods/NumberField) 6 | [![Language](https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat)](http://cocoapods.org/pods/NumberField) 7 | 8 | 9 | 10 | ## Requirements 11 | 12 | iOS 9.0 or above 13 | 14 | ## Installation 15 | 16 | #### CocoaPods 17 | 18 | NumberField is available through [CocoaPods](http://cocoapods.org). To install 19 | it, simply add the following line to your Podfile: 20 | 21 | Swift 4.2
22 | 23 | ```ruby 24 | pod 'NumberField', '0.4.2' 25 | ``` 26 | 27 | Swift 4.0
28 | 29 | ```ruby 30 | pod 'NumberField', '0.4.0' 31 | ``` 32 | 33 | ## Usage 34 | 35 | **Programmatically**
36 | 37 | ```swift 38 | // Create NumberField instance 39 | let numberField = NumberField() 40 | numberField.maxValue = 99999.99 41 | numberField.decimalPlace = 2 42 | numberField.prefixLabel.text = "LENGTH" 43 | numberField.suffixLabel.text = "cm" 44 | addSubview(numberField) 45 | 46 | // Set value 47 | numberField.value = 123.45 48 | 49 | // Get value 50 | let sellingPrice = numberField.value 51 | ``` 52 | 53 | **Storyboard**
54 | 55 | 1. Drag an UIView into Storyboard. 56 | 2. Set class to **NumberField**. 57 | 58 | 59 | 60 | ## NumberField Properties 61 | 62 | | Parameter | Type | Description | Default | 63 | | ---------------------------- | -------------------- | ---------------------------------------- | -------- | 64 | | *value* | Double | Current value. | 0 | 65 | | *maxValue* | Double | Maximum value. 0 means no limit. | *0* | 66 | | *decimalPlace* | Int | Number of decimal places. 0 means integer. | *0* | 67 | | *valueLabel* | UILabel | UILabel showing the value text. | *-* | 68 | | *prefixLabel* | UILabel | UILabel on the left side of value text. | *-* | 69 | | *suffixLabel* | UILabel | UILabel on the right side of value text. | *-* | 70 | | *textAlignment* | NumberFieldAlignment | Value text alignment. (.left / .right) | *.right* | 71 | | *isPrefndSuffixStickToSides* | Bool | **True** - Prefix and suffix will stick to left and right side.
**False** - Prefix and suffix will stick to the value text and will move as the value text size change. | *true* | 72 | 73 | 74 | 75 | ## Basic Components 76 | 77 | **NumberField** is constructed with **3 UILabel**. You can customize them as you like: 78 | 79 | ![LabelGuide](LabelGuide.png) 80 | 81 | ```swift 82 | // Customize value label 83 | numberField.valueLabel.font = UIFont.systemFont(ofSize: 20) 84 | 85 | // customize prefix label 86 | numberField.prefixLabel.text = "LENGTH" 87 | numberField1.prefixLabel.font = UIFont.boldSystemFont(ofSize: 16) 88 | numberField1.prefixLabel.textColor = UIColor.gray 89 | 90 | // customize suffix label 91 | numberField.suffixLabel.text = "cm" 92 | numberField1.suffixLabel.font = UIFont.boldSystemFont(ofSize: 16) 93 | numberField1.suffixLabel.textColor = UIColor.gray 94 | ``` 95 | 96 | 97 | 98 | ## Keyboard Customization 99 | 100 | | Parameter | Type | Description | Default | 101 | | --------------------------- | ------- | ---------------------------------------- | ------- | 102 | | *keyboardHeight* | CGFloat | Keyboard Height. | *260* | 103 | | *keyboardBorderColor* | UIColor | Border line color between keyboard buttons. | *-* | 104 | | *keyboardTextColor* | UIColor | Text color of keyboard buttons. | *-* | 105 | | *keyboardBackgroundColor* | UIColor | Background color of keyboard buttons. | *-* | 106 | | *keyboardDecimalPlaceColor* | UIColor | Background color of decimal place button. | *-* | 107 | | *keyboardBackspaceColor* | UIColor | Background color of backspace button. | *-* | 108 | 109 | ## 110 | 111 | ## Events 112 | 113 | Listen to **4 UIControlEvents**: `editingDidBegin`, `editingDidEnd`, `editingChanged` or `editingRejected`. 114 | 115 | ```swift 116 | //Listen to editing begin: 117 | numberField.addTarget(self, action: #selector(numberFieldEditingDidBegin), for: .editingDidBegin) 118 | 119 | //Listen editing end: 120 | numberField.addTarget(self, action: #selector(numberFieldEditingDidEnd), for: .editingDidEnd) 121 | 122 | //Listen to value changed on edit. 123 | numberField.addTarget(self, action: #selector(numberFieldEditingChanged), for: .editingChanged) 124 | 125 | //Listen to value rejected on edit. i.e. Value exceeded maximum value. 126 | numberField.addTarget(self, action: #selector(numberFieldEditingRejected), for: .editingRejected) 127 | 128 | //Your functions: 129 | func numberFieldEditingDidBegin(numberField: NumberField) { ... } 130 | func numberFieldEditingDidEnd(numberField: NumberField) { ... } 131 | func numberFieldEditingChanged(numberField: NumberField) { ... } 132 | func numberFieldEditingRejected(numberField: NumberField) { ... } 133 | ``` 134 | 135 | 136 | 137 | ## Author 138 | 139 | Kenneth Tsang, kenneth.tsang@me.com 140 | 141 | ## License 142 | 143 | NumberField is available under the MIT license. See the LICENSE file for more info. 144 | -------------------------------------------------------------------------------- /Example/NumberField/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // NumberField 4 | // 5 | // Created by kenthth@gmail.com on 03/20/2017. 6 | // Copyright (c) 2017 kenthth@gmail.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import NumberField 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var numberField1: NumberField! 15 | @IBOutlet weak var numberField2: NumberField! 16 | @IBOutlet weak var numberField3: NumberField! 17 | @IBOutlet weak var warningLabel: UILabel! 18 | 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | setupField1() 22 | setupField2() 23 | setupField3() 24 | 25 | // Hide keyboard when tapping outside 26 | let tapGesture = UITapGestureRecognizer(target: self, action: #selector(tapGestureHandler)) 27 | view.addGestureRecognizer(tapGesture) 28 | } 29 | 30 | func setupField1() { 31 | //Customization 32 | numberField1.value = 0 33 | numberField1.maxValue = 99999.99 34 | numberField1.decimalPlace = 2 35 | numberField1.valueLabel.font = UIFont.systemFont(ofSize: 20) 36 | 37 | //Prefix and Suffix 38 | numberField1.prefixLabel.text = "LENGTH" 39 | numberField1.suffixLabel.text = "cm" 40 | numberField1.textAlignment = .right 41 | numberField1.isPrefixAndSuffixStickToSides = true 42 | numberField1.prefixLabel.font = UIFont.boldSystemFont(ofSize: 16) 43 | numberField1.suffixLabel.font = UIFont.boldSystemFont(ofSize: 16) 44 | numberField1.prefixLabel.textColor = UIColor.gray 45 | numberField1.suffixLabel.textColor = UIColor.gray 46 | 47 | //Add Border 48 | numberField1.layer.borderWidth = 0.5 49 | numberField1.layer.borderColor = UIColor.lightGray.cgColor 50 | numberField1.layer.cornerRadius = 4 51 | 52 | //Listen to NumberField Events 53 | numberField1.addTarget(self, action: #selector(numberFieldEditingDidBegin), for: .editingDidBegin) 54 | numberField1.addTarget(self, action: #selector(numberFieldEditingDidEnd), for: .editingDidEnd) 55 | numberField1.addTarget(self, action: #selector(numberFieldEditingChanged), for: .editingChanged) 56 | numberField1.addTarget(self, action: #selector(numberFieldEditingRejected), for: .editingRejected) 57 | } 58 | 59 | func setupField2() { 60 | //Customization 61 | numberField2.value = 0 62 | numberField2.maxValue = 1000 63 | numberField2.decimalPlace = 0 64 | numberField2.valueLabel.font = UIFont.systemFont(ofSize: 20) 65 | 66 | //Prefix and Suffix 67 | numberField2.suffixLabel.text = "pcs" 68 | numberField2.prefixLabel.text = "QUANTITY" 69 | numberField2.textAlignment = .left 70 | numberField2.isPrefixAndSuffixStickToSides = false 71 | numberField2.prefixLabel.font = UIFont.boldSystemFont(ofSize: 16) 72 | numberField2.suffixLabel.font = UIFont.boldSystemFont(ofSize: 16) 73 | numberField2.prefixLabel.textColor = UIColor.gray 74 | numberField2.suffixLabel.textColor = UIColor.gray 75 | 76 | //Add Border 77 | numberField2.layer.borderWidth = 0.5 78 | numberField2.layer.borderColor = UIColor.lightGray.cgColor 79 | numberField2.layer.cornerRadius = 4 80 | 81 | //Listen to NumberField Events 82 | numberField2.addTarget(self, action: #selector(numberFieldEditingDidBegin), for: .editingDidBegin) 83 | numberField2.addTarget(self, action: #selector(numberFieldEditingDidEnd), for: .editingDidEnd) 84 | numberField2.addTarget(self, action: #selector(numberFieldEditingChanged), for: .editingChanged) 85 | numberField2.addTarget(self, action: #selector(numberFieldEditingRejected), for: .editingRejected) 86 | } 87 | 88 | func setupField3() { 89 | //Customization 90 | numberField3.value = 0 91 | numberField3.maxValue = 99999.99 92 | numberField3.decimalPlace = 2 93 | numberField3.valueLabel.font = UIFont.systemFont(ofSize: 20) 94 | 95 | //Prefix and Suffix 96 | numberField3.prefixLabel.text = "HKD" 97 | numberField3.textAlignment = .right 98 | numberField3.prefixLabel.font = UIFont.boldSystemFont(ofSize: 16) 99 | numberField3.suffixLabel.font = UIFont.boldSystemFont(ofSize: 16) 100 | numberField3.prefixLabel.textColor = UIColor.gray 101 | numberField3.suffixLabel.textColor = UIColor.gray 102 | 103 | //Add Border 104 | numberField3.layer.borderWidth = 0.5 105 | numberField3.layer.borderColor = UIColor.lightGray.cgColor 106 | numberField3.layer.cornerRadius = 4 107 | 108 | //Listen to NumberField Events 109 | numberField3.addTarget(self, action: #selector(numberFieldEditingDidBegin), for: .editingDidBegin) 110 | numberField3.addTarget(self, action: #selector(numberFieldEditingDidEnd), for: .editingDidEnd) 111 | numberField3.addTarget(self, action: #selector(numberFieldEditingChanged), for: .editingChanged) 112 | numberField3.addTarget(self, action: #selector(numberFieldEditingRejected), for: .editingRejected) 113 | } 114 | 115 | @objc func tapGestureHandler() { 116 | view.endEditing(true) 117 | } 118 | 119 | //Listen to NumberField Events 120 | @objc func numberFieldEditingDidBegin(numberField: NumberField) { 121 | //Called when editing did begin 122 | warningLabel.isHidden = true 123 | } 124 | @objc func numberFieldEditingDidEnd(numberField: NumberField) { 125 | //Called when editing did end 126 | warningLabel.isHidden = true 127 | } 128 | @objc func numberFieldEditingChanged(numberField: NumberField) { 129 | //Called when value changed on editing 130 | warningLabel.isHidden = true 131 | } 132 | @objc func numberFieldEditingRejected(numberField: NumberField) { 133 | //Called when input rejected. i.e. Value exceeded maximum value. 134 | warningLabel.isHidden = false 135 | } 136 | } 137 | -------------------------------------------------------------------------------- /Example/NumberField/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 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /NumberField/Classes/NumberFieldOld.swift: -------------------------------------------------------------------------------- 1 | //// 2 | //// NumberField.swift 3 | //// Pods 4 | //// 5 | //// Created by Tsang Kenneth on 20/3/2017. 6 | //// 7 | //// 8 | // 9 | //import Foundation 10 | //import UIKit 11 | // 12 | //@objc public protocol NumberFieldDelegate: class { 13 | // @objc optional func numberFieldDidBeginEditing(_ sender: NumberField, value: Double) 14 | // @objc optional func numberFieldDidEndEditing(_ sender: NumberField, value: Double) 15 | // @objc optional func numberFieldEditing(_ sender: NumberField, editingValue: Double) 16 | // @objc optional func numberFieldDidReceiveWrongInput(_ sender: NumberField) 17 | //} 18 | // 19 | //@objc public enum NumberFieldAlignment: Int { 20 | // case left 21 | // case right 22 | //} 23 | // 24 | //@objc open class NumberField: UIView { 25 | // weak public var delegate: NumberFieldDelegate? 26 | // 27 | // //MARK: Keyboard Customization 28 | // @IBInspectable public var keyboardHeight: CGFloat = 260 29 | // @IBInspectable public var keyboardBorderColor: UIColor = UIColor.lightGray 30 | // @IBInspectable public var keyboardTextColor: UIColor = UIColor.darkText 31 | // @IBInspectable public var keyboardBackgroundColor: UIColor = UIColor(white: 0.99, alpha: 1.0) 32 | // @IBInspectable public var keyboardDecimalPlaceColor: UIColor = UIColor(white: 0.99, alpha: 1.0) 33 | // @IBInspectable public var keyboardBackspaceColor: UIColor = UIColor(white: 0.90, alpha: 1.0) 34 | // 35 | // //MARK: NumberField Customization 36 | // @IBInspectable public var decimalPlace: Int = 0 37 | // @IBInspectable public var maxValue: Double = Double(0) 38 | // @IBInspectable public var value: Double = Double(0) { 39 | // didSet { 40 | // tempVal = value 41 | // text = String(format: "%.\(decimalPlace)f",value) 42 | // } 43 | // } 44 | // @IBInspectable public var font: UIFont { 45 | // get { return label.font } 46 | // set { label.font = newValue } 47 | // } 48 | // @IBInspectable public var textColor: UIColor { 49 | // get { return label.textColor } 50 | // set { label.textColor = newValue } 51 | // } 52 | // @IBInspectable public var textAlignment = NumberFieldAlignment.right { 53 | // didSet { 54 | // redrawSubviews() 55 | // } 56 | // } 57 | // @IBInspectable public var highlightedColor: UIColor = UIColor(red: 216/255, green: 234/255, blue: 249/255, alpha: 1.0) 58 | // 59 | // //MARK: Private Varibles 60 | // fileprivate var tempVal = Double(0) 61 | // fileprivate var text: String { 62 | // get { return label.text ?? "" } 63 | // set { label.text = newValue } 64 | // } 65 | // 66 | // //MARK: Subviews 67 | // private let label = UILabel() 68 | // private let cursor = FakeCursor() 69 | // 70 | // //MARK: Init 71 | // override public init(frame: CGRect) { 72 | // super.init(frame: frame) 73 | // commonInit() 74 | // } 75 | // 76 | // required public init?(coder aDecoder: NSCoder) { 77 | // super.init(coder: aDecoder) 78 | // commonInit() 79 | // } 80 | // 81 | // private func commonInit() { 82 | // clipsToBounds = true 83 | // redrawSubviews() 84 | // // Become first responder when tapped 85 | // let tapGesture = UITapGestureRecognizer(target: self, action: #selector(becomeFirstResponder)) 86 | // addGestureRecognizer(tapGesture) 87 | // } 88 | // 89 | // private func redrawSubviews() { 90 | // label.removeFromSuperview() 91 | // cursor.removeFromSuperview() 92 | // addSubview(label) 93 | // addSubview(cursor) 94 | // 95 | // label.translatesAutoresizingMaskIntoConstraints = false 96 | // cursor.translatesAutoresizingMaskIntoConstraints = false 97 | // 98 | // let views = ["label": label, "cursor": cursor] 99 | // label.backgroundColor = UIColor.red 100 | // let vfl = (textAlignment == .right) ? "H:|-(>=5)-[label][cursor]-4-|" : "H:|-(5)-[label][cursor]-(>=4)-|" 101 | // let hConstraints = NSLayoutConstraint.constraints(withVisualFormat: vfl, options: [], metrics: nil, views: views) 102 | // let labelYConstraints = NSLayoutConstraint(item: label, attribute: .centerY, relatedBy: .equal, toItem: self, attribute: .centerY, multiplier: 1, constant: 0) 103 | // let cursorYConstraints = NSLayoutConstraint(item: cursor, attribute: .centerY, relatedBy: .equal, toItem: self, attribute: .centerY, multiplier: 1, constant: 0) 104 | // let cursorHeightConstraints = NSLayoutConstraint(item: cursor, attribute: .height, relatedBy: .equal, toItem: self, attribute: .height, multiplier: 0.7, constant: 0) 105 | // addConstraints(hConstraints) 106 | // addConstraint(labelYConstraints) 107 | // addConstraint(cursorYConstraints) 108 | // addConstraint(cursorHeightConstraints) 109 | // layoutIfNeeded() 110 | // } 111 | // 112 | // //MARK: Define Custom Keyboard 113 | // override open var inputView: UIView? { 114 | // let keyboard = NumberKeyboard(frame: CGRect(x: 0, y: 0, width: 0, height: keyboardHeight)) 115 | // keyboard.delegate = self 116 | // keyboard.backgroundColor = keyboardBorderColor 117 | // for numberButton in keyboard.numberButtons { 118 | // numberButton.backgroundColor = keyboardBackgroundColor 119 | // numberButton.setTitleColor(keyboardTextColor, for: .normal) 120 | // } 121 | // keyboard.backspaceButton.backgroundColor = keyboardBackspaceColor 122 | // keyboard.backspaceButton.setTitleColor(keyboardTextColor, for: .normal) 123 | // keyboard.specialKeyButton.backgroundColor = keyboardDecimalPlaceColor 124 | // keyboard.specialKeyButton.setTitleColor(keyboardTextColor, for: .normal) 125 | // if decimalPlace == 0 { 126 | // keyboard.specialKeyButton.setTitle(nil, for: .normal) 127 | // keyboard.specialKeyButton.isEnabled = false 128 | // } else { 129 | // keyboard.specialKeyButton.setTitle(".", for: .normal) 130 | // keyboard.specialKeyButton.isEnabled = true 131 | // } 132 | // return keyboard 133 | // } 134 | // 135 | // override open var intrinsicContentSize: CGSize { 136 | // return CGSize(width: UIViewNoIntrinsicMetric, height: 30) 137 | // } 138 | // 139 | // //MARK: Cursor and Highlight 140 | // // 1. Highlight all text when becomeFirstResponder 141 | // // 2. Clear text before first edit 142 | // private var shouldOverwriteText = false { 143 | // didSet { 144 | // label.backgroundColor = shouldOverwriteText ? highlightedColor : UIColor.clear 145 | // cursor.isHidden = !isFirstResponder || (shouldOverwriteText && !text.isEmpty) 146 | // } 147 | // } 148 | // 149 | // fileprivate func overwriteTextIfNeeded() { 150 | // if shouldOverwriteText { 151 | // text = "" 152 | // shouldOverwriteText = false 153 | // } 154 | // } 155 | // 156 | // //MARK: Handle FirstResponder 157 | // override open var canBecomeFirstResponder: Bool { 158 | // return true 159 | // } 160 | // 161 | // override open func becomeFirstResponder() -> Bool { 162 | // if super.becomeFirstResponder() { 163 | // shouldOverwriteText = true 164 | // delegate?.numberFieldDidBeginEditing?(self, value: value) 165 | // return true 166 | // } else { 167 | // return false 168 | // } 169 | // } 170 | // 171 | // //MARK: Update value when resignFirstResponder 172 | // override open func resignFirstResponder() -> Bool { 173 | // if super.resignFirstResponder() { 174 | // shouldOverwriteText = false 175 | // value = tempVal 176 | // delegate?.numberFieldDidEndEditing?(self, value: value) 177 | // return true 178 | // } else { 179 | // return false 180 | // } 181 | // } 182 | //} 183 | // 184 | //extension NumberField: NumberKeyboardDelegate, UITextFieldDelegate { 185 | // 186 | // func numberTapped(number: Int) { 187 | // overwriteTextIfNeeded() 188 | // // Get the pressed number 189 | // var newText = String(number) 190 | // 191 | // // If origin value is not 0, or contains a ".", append the pressed number after original text 192 | // if tempVal > 0 || text.contains(".") { 193 | // newText = text.appending(newText) 194 | // } 195 | // 196 | // // Prevent exceeding decimalPlace limit 197 | // if let range = newText.range(of: ".") { 198 | // let decimalCount = newText.substring(from: range.lowerBound).characters.count - 1 199 | // if decimalCount > decimalPlace { 200 | // delegate?.numberFieldDidReceiveWrongInput?(self) 201 | // return 202 | // } 203 | // } 204 | // 205 | // // Prevent exceeding maxValue 206 | // if let newValue = Double(newText) { 207 | // if maxValue > 0 && newValue > maxValue { 208 | // delegate?.numberFieldDidReceiveWrongInput?(self) 209 | // return 210 | // } 211 | // tempVal = newValue 212 | // } 213 | // 214 | // // Update text if passed all validation 215 | // text = newText 216 | // } 217 | // 218 | // func specialKeyTapped() { 219 | // overwriteTextIfNeeded() 220 | // if text.isEmpty { 221 | // text = "0" 222 | // } 223 | // if !text.contains(".") { 224 | // text = text.appending(".") 225 | // } 226 | // } 227 | // 228 | // func backspaceTapped() { 229 | // overwriteTextIfNeeded() 230 | // text = String(text.characters.dropLast()) 231 | // if text.isEmpty { 232 | // tempVal = 0 233 | // return 234 | // } 235 | // if let newValue = Double(text) { 236 | // tempVal = newValue 237 | // } 238 | // } 239 | //} 240 | -------------------------------------------------------------------------------- /NumberField/Classes/NumberField.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NumberField.swift 3 | // Pods 4 | // 5 | // Created by Tsang Kenneth on 20/3/2017. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | @objc public enum NumberFieldAlignment: Int { 12 | case left 13 | case right 14 | } 15 | 16 | @objc open class NumberField: UIControl { 17 | //MARK: UI Components 18 | public let valueLabel = UILabel() 19 | public let prefixLabel = UILabel() 20 | public let suffixLabel = UILabel() 21 | private let cursor = FakeCursor() 22 | private var stackView = UIStackView() 23 | 24 | //MARK: Keyboard Customization 25 | @IBInspectable public var keyboardHeight: CGFloat = 260 26 | @IBInspectable public var keyboardBorderColor: UIColor = UIColor.lightGray 27 | @IBInspectable public var keyboardTextColor: UIColor = UIColor.darkText 28 | @IBInspectable public var keyboardBackgroundColor: UIColor = UIColor(white: 0.99, alpha: 1.0) 29 | @IBInspectable public var keyboardDecimalPlaceColor: UIColor = UIColor(white: 0.99, alpha: 1.0) 30 | @IBInspectable public var keyboardBackspaceColor: UIColor = UIColor(white: 0.90, alpha: 1.0) 31 | 32 | //MARK: NumberField Customization 33 | @IBInspectable public var decimalPlace: Int = 0 { 34 | didSet { formatValue() } 35 | } 36 | 37 | @IBInspectable public var maxValue: Double = Double(0) 38 | 39 | @IBInspectable public var value: Double = Double(0) { 40 | didSet { 41 | if isFirstResponder { 42 | sendActions(for: [.editingChanged]) 43 | } else { 44 | formatValue() 45 | } 46 | } 47 | } 48 | 49 | @IBInspectable public var textAlignment = NumberFieldAlignment.right { 50 | didSet { delayedRedrawSubviews() } 51 | } 52 | 53 | @IBInspectable public var highlightedColor: UIColor = UIColor(red: 216/255, green: 234/255, blue: 249/255, alpha: 1.0) 54 | 55 | //MARK: Private Varibles 56 | private var timer: Timer? 57 | fileprivate var text: String { 58 | get { return valueLabel.text ?? "" } 59 | set { valueLabel.text = newValue } 60 | } 61 | 62 | 63 | //MARK: Prefix / Suffix 64 | public var isPrefixAndSuffixStickToSides: Bool = true { 65 | didSet { delayedRedrawSubviews() } 66 | } 67 | 68 | //MARK: Init 69 | override public init(frame: CGRect) { 70 | super.init(frame: frame) 71 | commonInit() 72 | } 73 | 74 | required public init?(coder aDecoder: NSCoder) { 75 | super.init(coder: aDecoder) 76 | commonInit() 77 | } 78 | 79 | private func commonInit() { 80 | clipsToBounds = true 81 | prefixLabel.textAlignment = .left 82 | suffixLabel.textAlignment = .right 83 | delayedRedrawSubviews() 84 | // Become first responder when tapped 85 | let tapGesture = UITapGestureRecognizer(target: self, action: #selector(becomeFirstResponder)) 86 | addGestureRecognizer(tapGesture) 87 | } 88 | 89 | private func delayedRedrawSubviews() { 90 | timer?.invalidate() 91 | timer = Timer.scheduledTimer(timeInterval: 0.01, target: self, selector: #selector(redrawSubviews), userInfo: nil, repeats: false) 92 | } 93 | 94 | @objc func redrawSubviews() { 95 | stackView.removeFromSuperview() 96 | cursor.removeFromSuperview() 97 | 98 | stackView = UIStackView(arrangedSubviews: [prefixLabel, valueLabel, suffixLabel]) 99 | stackView.alignment = .center 100 | stackView.axis = .horizontal 101 | stackView.distribution = .fill 102 | stackView.spacing = 4 103 | 104 | addSubview(stackView) 105 | addSubview(cursor) 106 | 107 | stackView.translatesAutoresizingMaskIntoConstraints = false 108 | valueLabel.translatesAutoresizingMaskIntoConstraints = false 109 | cursor.translatesAutoresizingMaskIntoConstraints = false 110 | 111 | // Always compress the value label if no enough space 112 | valueLabel.setContentCompressionResistancePriority(UILayoutPriority.defaultLow, for: .horizontal) 113 | prefixLabel.setContentCompressionResistancePriority(UILayoutPriority.required, for: .horizontal) 114 | suffixLabel.setContentCompressionResistancePriority(UILayoutPriority.required, for: .horizontal) 115 | valueLabel.setContentHuggingPriority(UILayoutPriority.required, for: .horizontal) 116 | if textAlignment == .left { 117 | prefixLabel.setContentHuggingPriority(UILayoutPriority.required, for: .horizontal) 118 | suffixLabel.setContentHuggingPriority(UILayoutPriority.defaultLow, for: .horizontal) 119 | } else { 120 | prefixLabel.setContentHuggingPriority(UILayoutPriority.defaultLow, for: .horizontal) 121 | suffixLabel.setContentHuggingPriority(UILayoutPriority.required, for: .horizontal) 122 | } 123 | 124 | var vfl = "" 125 | if isPrefixAndSuffixStickToSides { 126 | vfl = "H:|-5-[stackView]-5-|" 127 | } else { 128 | if textAlignment == .left { 129 | vfl = "H:|-5-[stackView]-(>=5)-|" 130 | } else { 131 | vfl = "H:|-(>=5)-[stackView]-5-|" 132 | } 133 | } 134 | 135 | let views:[String: Any] = ["stackView": stackView] 136 | let hConstraints = NSLayoutConstraint.constraints(withVisualFormat: vfl, options: [], metrics: nil, views: views) 137 | let yConstraint = NSLayoutConstraint(item: stackView, attribute: .centerY, relatedBy: .equal, toItem: self, attribute: .centerY, multiplier: 1, constant: 0) 138 | let cursorXConstraint = NSLayoutConstraint(item: cursor, attribute: .left, relatedBy: .equal, toItem: valueLabel, attribute: .right, multiplier: 1, constant: 0) 139 | let cursorYConstraint = NSLayoutConstraint(item: cursor, attribute: .centerY, relatedBy: .equal, toItem: self, attribute: .centerY, multiplier: 1, constant: 0) 140 | let cursorHeightConstraint = NSLayoutConstraint(item: cursor, attribute: .height, relatedBy: .equal, toItem: self, attribute: .height, multiplier: 0.7, constant: 0) 141 | 142 | addConstraints(hConstraints) 143 | addConstraint(yConstraint) 144 | addConstraint(cursorXConstraint) 145 | addConstraint(cursorYConstraint) 146 | addConstraint(cursorHeightConstraint) 147 | layoutIfNeeded() 148 | } 149 | 150 | //MARK: Define Custom Keyboard 151 | override open var inputView: UIView? { 152 | let keyboard = NumberKeyboard(frame: CGRect(x: 0, y: 0, width: 0, height: keyboardHeight)) 153 | keyboard.delegate = self 154 | keyboard.backgroundColor = keyboardBorderColor 155 | for numberButton in keyboard.numberButtons { 156 | numberButton.backgroundColor = keyboardBackgroundColor 157 | numberButton.setTitleColor(keyboardTextColor, for: .normal) 158 | } 159 | keyboard.backspaceButton.backgroundColor = keyboardBackspaceColor 160 | keyboard.backspaceButton.setTitleColor(keyboardTextColor, for: .normal) 161 | keyboard.specialKeyButton.backgroundColor = keyboardDecimalPlaceColor 162 | keyboard.specialKeyButton.setTitleColor(keyboardTextColor, for: .normal) 163 | if decimalPlace == 0 { 164 | keyboard.specialKeyButton.setTitle(nil, for: .normal) 165 | keyboard.specialKeyButton.isEnabled = false 166 | } else { 167 | keyboard.specialKeyButton.setTitle(".", for: .normal) 168 | keyboard.specialKeyButton.isEnabled = true 169 | } 170 | return keyboard 171 | } 172 | 173 | override open var intrinsicContentSize: CGSize { 174 | return CGSize(width: UIView.noIntrinsicMetric, height: 30) 175 | } 176 | 177 | //MARK: Cursor and Highlight 178 | // 1. Highlight all text when becomeFirstResponder 179 | // 2. Clear text before first edit 180 | private var shouldOverwriteText = false { 181 | didSet { 182 | valueLabel.backgroundColor = shouldOverwriteText ? highlightedColor : UIColor.clear 183 | cursor.isHidden = !isFirstResponder || (shouldOverwriteText && !text.isEmpty) 184 | } 185 | } 186 | 187 | fileprivate func overwriteTextIfNeeded() { 188 | if shouldOverwriteText { 189 | text = "" 190 | shouldOverwriteText = false 191 | } 192 | } 193 | 194 | //MARK: Handle FirstResponder 195 | override open var canBecomeFirstResponder: Bool { 196 | return true 197 | } 198 | 199 | override open func becomeFirstResponder() -> Bool { 200 | if super.becomeFirstResponder() { 201 | shouldOverwriteText = true 202 | sendActions(for: [.editingDidBegin]) 203 | return true 204 | } else { 205 | return false 206 | } 207 | } 208 | 209 | //MARK: Update value when resignFirstResponder 210 | override open func resignFirstResponder() -> Bool { 211 | if super.resignFirstResponder() { 212 | shouldOverwriteText = false 213 | formatValue() 214 | sendActions(for: [.editingDidEnd]) 215 | return true 216 | } else { 217 | return false 218 | } 219 | } 220 | 221 | private func formatValue() { 222 | text = String(format: "%.\(decimalPlace)f",value) 223 | } 224 | } 225 | 226 | extension NumberField: NumberKeyboardDelegate { 227 | 228 | func numberTapped(number: Int) { 229 | overwriteTextIfNeeded() 230 | // Get the pressed number 231 | var newText = String(number) 232 | 233 | // If origin value is not 0, or contains a ".", append the pressed number after original text 234 | if value > 0 || text.contains(".") { 235 | newText = text.appending(newText) 236 | } 237 | 238 | // Prevent exceeding decimalPlace limit 239 | if let range = newText.range(of: ".") { 240 | let decimalCount = newText.suffix(from: range.upperBound).count 241 | if decimalCount > decimalPlace { 242 | sendActions(for: [.editingRejected]) 243 | return 244 | } 245 | } 246 | 247 | // Prevent exceeding maxValue 248 | if let newValue = Double(newText) { 249 | if maxValue > 0 && newValue > maxValue { 250 | sendActions(for: [.editingRejected]) 251 | return 252 | } 253 | value = newValue 254 | } 255 | // Update value and text if passed all validation 256 | text = newText 257 | } 258 | 259 | func specialKeyTapped() { 260 | overwriteTextIfNeeded() 261 | if text.isEmpty { 262 | text = "0" 263 | } 264 | if !text.contains(".") { 265 | text = text.appending(".") 266 | } 267 | } 268 | 269 | func backspaceTapped() { 270 | overwriteTextIfNeeded() 271 | text = String(text.dropLast()) 272 | value = Double(text) ?? 0 273 | } 274 | } 275 | -------------------------------------------------------------------------------- /NumberField/Classes/NumberKeyboard.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 49 | 60 | 71 | 72 | 73 | 74 | 75 | 76 | 87 | 98 | 109 | 110 | 111 | 112 | 113 | 114 | 125 | 136 | 147 | 148 | 149 | 150 | 151 | 152 | 163 | 174 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | -------------------------------------------------------------------------------- /Example/NumberField.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 47385584D869779342B6DE3F /* Pods_NumberField_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43E74A2A414D99EE9857249D /* Pods_NumberField_Tests.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | 6745B494377136CBA86CF7CA /* Pods_NumberField_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D36C16C657DD8B264C870B2 /* Pods_NumberField_Example.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = NumberField; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 0E298C68A973FCF8729726EB /* Pods-NumberField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NumberField_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example.debug.xcconfig"; sourceTree = ""; }; 32 | 19E42B9BE48EB95C44BF1155 /* NumberField.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = NumberField.podspec; path = ../NumberField.podspec; sourceTree = ""; }; 33 | 43E74A2A414D99EE9857249D /* Pods_NumberField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NumberField_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 5D36C16C657DD8B264C870B2 /* Pods_NumberField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NumberField_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD01AFB9204008FA782 /* NumberField_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NumberField_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* NumberField_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NumberField_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 7D623C38D48656F4175DC7E2 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 46 | D382C0A0D422D68EB2C5B267 /* Pods-NumberField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NumberField_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests.release.xcconfig"; sourceTree = ""; }; 47 | DD5B7BA0DF5A4C87CF04333E /* Pods-NumberField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NumberField_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example.release.xcconfig"; sourceTree = ""; }; 48 | E908BEE395ECA108545E54D4 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 49 | E9DF790A26E9BA5CDBFFA0EE /* Pods-NumberField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NumberField_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests.debug.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 6745B494377136CBA86CF7CA /* Pods_NumberField_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 47385584D869779342B6DE3F /* Pods_NumberField_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 607FACC71AFB9204008FA782 = { 73 | isa = PBXGroup; 74 | children = ( 75 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 76 | 607FACD21AFB9204008FA782 /* Example for NumberField */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | FCAFD2C90AA565ED513B8A9A /* Pods */, 80 | F93CA5AC6E697E8E4EAAC9CD /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* NumberField_Example.app */, 88 | 607FACE51AFB9204008FA782 /* NumberField_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for NumberField */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 97 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 98 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 99 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 100 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for NumberField"; 104 | path = NumberField; 105 | sourceTree = ""; 106 | }; 107 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD41AFB9204008FA782 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 607FACE81AFB9204008FA782 /* Tests */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 119 | 607FACE91AFB9204008FA782 /* Supporting Files */, 120 | ); 121 | path = Tests; 122 | sourceTree = ""; 123 | }; 124 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEA1AFB9204008FA782 /* Info.plist */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 19E42B9BE48EB95C44BF1155 /* NumberField.podspec */, 136 | 7D623C38D48656F4175DC7E2 /* README.md */, 137 | E908BEE395ECA108545E54D4 /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | F93CA5AC6E697E8E4EAAC9CD /* Frameworks */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 5D36C16C657DD8B264C870B2 /* Pods_NumberField_Example.framework */, 146 | 43E74A2A414D99EE9857249D /* Pods_NumberField_Tests.framework */, 147 | ); 148 | name = Frameworks; 149 | sourceTree = ""; 150 | }; 151 | FCAFD2C90AA565ED513B8A9A /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 0E298C68A973FCF8729726EB /* Pods-NumberField_Example.debug.xcconfig */, 155 | DD5B7BA0DF5A4C87CF04333E /* Pods-NumberField_Example.release.xcconfig */, 156 | E9DF790A26E9BA5CDBFFA0EE /* Pods-NumberField_Tests.debug.xcconfig */, 157 | D382C0A0D422D68EB2C5B267 /* Pods-NumberField_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* NumberField_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NumberField_Example" */; 168 | buildPhases = ( 169 | 4CD24A48C930B122B5A7FADD /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 1EDCB9B6C2E81541C828AC1F /* [CP] Embed Pods Frameworks */, 174 | 9D2F84BF1A10532290FFE8A2 /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = NumberField_Example; 181 | productName = NumberField; 182 | productReference = 607FACD01AFB9204008FA782 /* NumberField_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* NumberField_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NumberField_Tests" */; 188 | buildPhases = ( 189 | 646DB7CAADF46BA88195E06F /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | F4FDC62E5C4A93C824D42652 /* [CP] Embed Pods Frameworks */, 194 | 2F0F284ECF8296CA04F6EDBC /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = NumberField_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* NumberField_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0720; 213 | LastUpgradeCheck = 0930; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0820; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 0930; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "NumberField" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* NumberField_Example */, 241 | 607FACE41AFB9204008FA782 /* NumberField_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 1EDCB9B6C2E81541C828AC1F /* [CP] Embed Pods Frameworks */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | ); 274 | name = "[CP] Embed Pods Frameworks"; 275 | outputPaths = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example-frameworks.sh\"\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | 2F0F284ECF8296CA04F6EDBC /* [CP] Copy Pods Resources */ = { 283 | isa = PBXShellScriptBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | inputPaths = ( 288 | ); 289 | name = "[CP] Copy Pods Resources"; 290 | outputPaths = ( 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | shellPath = /bin/sh; 294 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests-resources.sh\"\n"; 295 | showEnvVarsInLog = 0; 296 | }; 297 | 4CD24A48C930B122B5A7FADD /* [CP] Check Pods Manifest.lock */ = { 298 | isa = PBXShellScriptBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | ); 302 | inputPaths = ( 303 | ); 304 | name = "[CP] Check Pods Manifest.lock"; 305 | outputPaths = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | shellPath = /bin/sh; 309 | shellScript = "diff \"${PODS_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"; 310 | showEnvVarsInLog = 0; 311 | }; 312 | 646DB7CAADF46BA88195E06F /* [CP] Check Pods Manifest.lock */ = { 313 | isa = PBXShellScriptBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | ); 317 | inputPaths = ( 318 | ); 319 | name = "[CP] Check Pods Manifest.lock"; 320 | outputPaths = ( 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | 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"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | 9D2F84BF1A10532290FFE8A2 /* [CP] Copy Pods Resources */ = { 328 | isa = PBXShellScriptBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | inputPaths = ( 333 | ); 334 | name = "[CP] Copy Pods Resources"; 335 | outputPaths = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example-resources.sh\"\n"; 340 | showEnvVarsInLog = 0; 341 | }; 342 | F4FDC62E5C4A93C824D42652 /* [CP] Embed Pods Frameworks */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputPaths = ( 348 | ); 349 | name = "[CP] Embed Pods Frameworks"; 350 | outputPaths = ( 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | shellPath = /bin/sh; 354 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests-frameworks.sh\"\n"; 355 | showEnvVarsInLog = 0; 356 | }; 357 | /* End PBXShellScriptBuildPhase section */ 358 | 359 | /* Begin PBXSourcesBuildPhase section */ 360 | 607FACCC1AFB9204008FA782 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 365 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | 607FACE11AFB9204008FA782 /* Sources */ = { 370 | isa = PBXSourcesBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | /* End PBXSourcesBuildPhase section */ 378 | 379 | /* Begin PBXTargetDependency section */ 380 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 381 | isa = PBXTargetDependency; 382 | target = 607FACCF1AFB9204008FA782 /* NumberField_Example */; 383 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 384 | }; 385 | /* End PBXTargetDependency section */ 386 | 387 | /* Begin PBXVariantGroup section */ 388 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 389 | isa = PBXVariantGroup; 390 | children = ( 391 | 607FACDA1AFB9204008FA782 /* Base */, 392 | ); 393 | name = Main.storyboard; 394 | sourceTree = ""; 395 | }; 396 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 397 | isa = PBXVariantGroup; 398 | children = ( 399 | 607FACDF1AFB9204008FA782 /* Base */, 400 | ); 401 | name = LaunchScreen.xib; 402 | sourceTree = ""; 403 | }; 404 | /* End PBXVariantGroup section */ 405 | 406 | /* Begin XCBuildConfiguration section */ 407 | 607FACED1AFB9204008FA782 /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ALWAYS_SEARCH_USER_PATHS = NO; 411 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 412 | CLANG_CXX_LIBRARY = "libc++"; 413 | CLANG_ENABLE_MODULES = YES; 414 | CLANG_ENABLE_OBJC_ARC = YES; 415 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 416 | CLANG_WARN_BOOL_CONVERSION = YES; 417 | CLANG_WARN_COMMA = YES; 418 | CLANG_WARN_CONSTANT_CONVERSION = YES; 419 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 420 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 421 | CLANG_WARN_EMPTY_BODY = YES; 422 | CLANG_WARN_ENUM_CONVERSION = YES; 423 | CLANG_WARN_INFINITE_RECURSION = YES; 424 | CLANG_WARN_INT_CONVERSION = YES; 425 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 426 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 427 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 428 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 429 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 430 | CLANG_WARN_STRICT_PROTOTYPES = YES; 431 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 432 | CLANG_WARN_UNREACHABLE_CODE = YES; 433 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 435 | COPY_PHASE_STRIP = NO; 436 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 437 | ENABLE_STRICT_OBJC_MSGSEND = YES; 438 | ENABLE_TESTABILITY = YES; 439 | GCC_C_LANGUAGE_STANDARD = gnu99; 440 | GCC_DYNAMIC_NO_PIC = NO; 441 | GCC_NO_COMMON_BLOCKS = YES; 442 | GCC_OPTIMIZATION_LEVEL = 0; 443 | GCC_PREPROCESSOR_DEFINITIONS = ( 444 | "DEBUG=1", 445 | "$(inherited)", 446 | ); 447 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 448 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 449 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 450 | GCC_WARN_UNDECLARED_SELECTOR = YES; 451 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 452 | GCC_WARN_UNUSED_FUNCTION = YES; 453 | GCC_WARN_UNUSED_VARIABLE = YES; 454 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 455 | MTL_ENABLE_DEBUG_INFO = YES; 456 | ONLY_ACTIVE_ARCH = YES; 457 | SDKROOT = iphoneos; 458 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 459 | }; 460 | name = Debug; 461 | }; 462 | 607FACEE1AFB9204008FA782 /* Release */ = { 463 | isa = XCBuildConfiguration; 464 | buildSettings = { 465 | ALWAYS_SEARCH_USER_PATHS = NO; 466 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 467 | CLANG_CXX_LIBRARY = "libc++"; 468 | CLANG_ENABLE_MODULES = YES; 469 | CLANG_ENABLE_OBJC_ARC = YES; 470 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 471 | CLANG_WARN_BOOL_CONVERSION = YES; 472 | CLANG_WARN_COMMA = YES; 473 | CLANG_WARN_CONSTANT_CONVERSION = YES; 474 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 475 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 476 | CLANG_WARN_EMPTY_BODY = YES; 477 | CLANG_WARN_ENUM_CONVERSION = YES; 478 | CLANG_WARN_INFINITE_RECURSION = YES; 479 | CLANG_WARN_INT_CONVERSION = YES; 480 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 481 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 482 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 483 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 484 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 485 | CLANG_WARN_STRICT_PROTOTYPES = YES; 486 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 487 | CLANG_WARN_UNREACHABLE_CODE = YES; 488 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 489 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 490 | COPY_PHASE_STRIP = NO; 491 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 492 | ENABLE_NS_ASSERTIONS = NO; 493 | ENABLE_STRICT_OBJC_MSGSEND = YES; 494 | GCC_C_LANGUAGE_STANDARD = gnu99; 495 | GCC_NO_COMMON_BLOCKS = YES; 496 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 497 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 498 | GCC_WARN_UNDECLARED_SELECTOR = YES; 499 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 500 | GCC_WARN_UNUSED_FUNCTION = YES; 501 | GCC_WARN_UNUSED_VARIABLE = YES; 502 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 503 | MTL_ENABLE_DEBUG_INFO = NO; 504 | SDKROOT = iphoneos; 505 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 506 | VALIDATE_PRODUCT = YES; 507 | }; 508 | name = Release; 509 | }; 510 | 607FACF01AFB9204008FA782 /* Debug */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = 0E298C68A973FCF8729726EB /* Pods-NumberField_Example.debug.xcconfig */; 513 | buildSettings = { 514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 515 | DEVELOPMENT_TEAM = ""; 516 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 517 | INFOPLIST_FILE = NumberField/Info.plist; 518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 519 | MODULE_NAME = ExampleApp; 520 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 521 | PRODUCT_NAME = "$(TARGET_NAME)"; 522 | SWIFT_VERSION = 4.2; 523 | }; 524 | name = Debug; 525 | }; 526 | 607FACF11AFB9204008FA782 /* Release */ = { 527 | isa = XCBuildConfiguration; 528 | baseConfigurationReference = DD5B7BA0DF5A4C87CF04333E /* Pods-NumberField_Example.release.xcconfig */; 529 | buildSettings = { 530 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 531 | DEVELOPMENT_TEAM = ""; 532 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 533 | INFOPLIST_FILE = NumberField/Info.plist; 534 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 535 | MODULE_NAME = ExampleApp; 536 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 537 | PRODUCT_NAME = "$(TARGET_NAME)"; 538 | SWIFT_VERSION = 4.2; 539 | }; 540 | name = Release; 541 | }; 542 | 607FACF31AFB9204008FA782 /* Debug */ = { 543 | isa = XCBuildConfiguration; 544 | baseConfigurationReference = E9DF790A26E9BA5CDBFFA0EE /* Pods-NumberField_Tests.debug.xcconfig */; 545 | buildSettings = { 546 | DEVELOPMENT_TEAM = ""; 547 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 548 | GCC_PREPROCESSOR_DEFINITIONS = ( 549 | "DEBUG=1", 550 | "$(inherited)", 551 | ); 552 | INFOPLIST_FILE = Tests/Info.plist; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 554 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 555 | PRODUCT_NAME = "$(TARGET_NAME)"; 556 | SWIFT_VERSION = 4.0; 557 | }; 558 | name = Debug; 559 | }; 560 | 607FACF41AFB9204008FA782 /* Release */ = { 561 | isa = XCBuildConfiguration; 562 | baseConfigurationReference = D382C0A0D422D68EB2C5B267 /* Pods-NumberField_Tests.release.xcconfig */; 563 | buildSettings = { 564 | DEVELOPMENT_TEAM = ""; 565 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 566 | INFOPLIST_FILE = Tests/Info.plist; 567 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 568 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 569 | PRODUCT_NAME = "$(TARGET_NAME)"; 570 | SWIFT_VERSION = 4.0; 571 | }; 572 | name = Release; 573 | }; 574 | /* End XCBuildConfiguration section */ 575 | 576 | /* Begin XCConfigurationList section */ 577 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "NumberField" */ = { 578 | isa = XCConfigurationList; 579 | buildConfigurations = ( 580 | 607FACED1AFB9204008FA782 /* Debug */, 581 | 607FACEE1AFB9204008FA782 /* Release */, 582 | ); 583 | defaultConfigurationIsVisible = 0; 584 | defaultConfigurationName = Release; 585 | }; 586 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NumberField_Example" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | 607FACF01AFB9204008FA782 /* Debug */, 590 | 607FACF11AFB9204008FA782 /* Release */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NumberField_Tests" */ = { 596 | isa = XCConfigurationList; 597 | buildConfigurations = ( 598 | 607FACF31AFB9204008FA782 /* Debug */, 599 | 607FACF41AFB9204008FA782 /* Release */, 600 | ); 601 | defaultConfigurationIsVisible = 0; 602 | defaultConfigurationName = Release; 603 | }; 604 | /* End XCConfigurationList section */ 605 | }; 606 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 607 | } 608 | -------------------------------------------------------------------------------- /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 | 19FDF6B2258044294B94FE97EA61FC94 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 11 | 226A844121F4991B82B30E0A97BD3147 /* NumberField.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 2E039B74BAFD1649ED03B53857D386E7 /* NumberField.bundle */; }; 12 | 34B7D32D07ED4624FAA403668832622F /* Pods-NumberField_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 49992FCD1CD6F76805E042FA233A0F9B /* Pods-NumberField_Tests-dummy.m */; }; 13 | 3B4312263E9C677275D452CA8A0EF26E /* Pods-NumberField_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C98D55006956E9FBF05B419BB3C1C8 /* Pods-NumberField_Example-dummy.m */; }; 14 | 534AB5C5125A8D961A4F3705869473AA /* Pods-NumberField_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 765EDD627AAA810FAA697A2B0004F54B /* Pods-NumberField_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 73F351A9E70851B2B1C10E11206ED7D6 /* NumberKeyboard.xib in Sources */ = {isa = PBXBuildFile; fileRef = 892FC661FAC7D447EE30A6EA6E17A0CC /* NumberKeyboard.xib */; }; 16 | 8D8CBC0D3B734B2809C9F6343CF51B23 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 17 | 98533BD30EFC267677221E32CBB67FA7 /* Pods-NumberField_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E28BD5E90CDA01C0DC3662EA1BC6EE2C /* Pods-NumberField_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 9949686DD6C1892D9947BC7E1B10BBC8 /* NumberField-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 782434D0AD2F79597375A433227D8DA9 /* NumberField-dummy.m */; }; 19 | A05207A02E59320D009B73E346541235 /* NumberField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 087E5101FC10B58BDCBEABBB4B5D1646 /* NumberField.swift */; }; 20 | BAF3B0BE7487584FE423BB1588AA4796 /* NumberKeyboard.xib in Resources */ = {isa = PBXBuildFile; fileRef = 892FC661FAC7D447EE30A6EA6E17A0CC /* NumberKeyboard.xib */; }; 21 | BFA6C9DD4744112DD52790F600EB3B32 /* NumberField-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 226FE31B52C56AC375D4F7A7DB0DB84D /* NumberField-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | C1EC94B741EF90460A529C0B766D280D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 23 | C4EA157E44A5F3F31A4C7714BF9553C1 /* FakeCursor.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6FBDF92122D0BF5647ADB678E9BD96F /* FakeCursor.swift */; }; 24 | D74D4B72C2B15B53E85C7F556D626A57 /* NumberKeyboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B2AE88E07673814A0B92AE5B3DDF7E0 /* NumberKeyboard.swift */; }; 25 | E8174C8E1E821511007A284B /* NumberFieldOld.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8174C8D1E821511007A284B /* NumberFieldOld.swift */; }; 26 | E85D378A1E821E5300F6A7AF /* UIControlEventsExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = E85D37891E821E5300F6A7AF /* UIControlEventsExtension.swift */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 3D3933F2E1DA3868FD6FE3E5EC6C6D73 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = F0F65D32604CE8F7CB71E4ABF8093D17; 35 | remoteInfo = NumberField; 36 | }; 37 | AE20B0A1F0149DFD8B40EAF173F27E23 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = DBF3486888D41EF67A273488BF87A616; 42 | remoteInfo = "NumberField-NumberField"; 43 | }; 44 | /* End PBXContainerItemProxy section */ 45 | 46 | /* Begin PBXFileReference section */ 47 | 077D438639AA918E4C7B41DFD237A6F7 /* Pods-NumberField_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-NumberField_Tests-resources.sh"; sourceTree = ""; }; 48 | 087E5101FC10B58BDCBEABBB4B5D1646 /* NumberField.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = NumberField.swift; sourceTree = ""; }; 49 | 0B7F26D623B6924919A2A34E023902C1 /* Pods-NumberField_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-NumberField_Tests.modulemap"; sourceTree = ""; }; 50 | 0E7FEF38F4F919CB4922F1C934DDF6BE /* NumberField.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = NumberField.xcconfig; sourceTree = ""; }; 51 | 18149C2E6102FF1F5F8121CCD4EB530F /* NumberField-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "NumberField-prefix.pch"; sourceTree = ""; }; 52 | 1B2AE88E07673814A0B92AE5B3DDF7E0 /* NumberKeyboard.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = NumberKeyboard.swift; sourceTree = ""; }; 53 | 226FE31B52C56AC375D4F7A7DB0DB84D /* NumberField-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "NumberField-umbrella.h"; sourceTree = ""; }; 54 | 2AD7ED84F05091676A0FA54C33BE6B89 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 2E039B74BAFD1649ED03B53857D386E7 /* NumberField.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NumberField.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 33DB6978DD8AEB97938668C47DA9990D /* Pods-NumberField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-NumberField_Tests.debug.xcconfig"; sourceTree = ""; }; 57 | 35BA80EC945C66630663B23146334D19 /* Pods-NumberField_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-NumberField_Example.modulemap"; sourceTree = ""; }; 58 | 3C0B07063DB8679D8FE0C5EEEB4D8A90 /* Pods-NumberField_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-NumberField_Tests-acknowledgements.plist"; sourceTree = ""; }; 59 | 434F18456E6142EC79D4DF5DD220D526 /* Pods_NumberField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NumberField_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 470D9CA65C8CF7955613BDB5107E20A0 /* Pods-NumberField_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-NumberField_Example-frameworks.sh"; sourceTree = ""; }; 61 | 49992FCD1CD6F76805E042FA233A0F9B /* Pods-NumberField_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-NumberField_Tests-dummy.m"; sourceTree = ""; }; 62 | 4D18783AB9B6EB34C2D757321CFCD57D /* NumberField.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = NumberField.modulemap; sourceTree = ""; }; 63 | 5F6EA06765770559AAC775FCDD7A5CE1 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 64 | 6CC7B9604DC8A77ECC6B8E671495C4E0 /* Pods-NumberField_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-NumberField_Example-acknowledgements.plist"; sourceTree = ""; }; 65 | 765EDD627AAA810FAA697A2B0004F54B /* Pods-NumberField_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-NumberField_Tests-umbrella.h"; sourceTree = ""; }; 66 | 782434D0AD2F79597375A433227D8DA9 /* NumberField-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "NumberField-dummy.m"; sourceTree = ""; }; 67 | 7A4103EEB672B9EC8D949E55FFA690FA /* ResourceBundle-NumberField-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-NumberField-Info.plist"; sourceTree = ""; }; 68 | 7B5353E06AB6E3FDF32EFCAEAFC7335A /* Pods_NumberField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NumberField_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 80849E37B80A16BD6FED885150D5B627 /* Pods-NumberField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-NumberField_Tests.release.xcconfig"; sourceTree = ""; }; 70 | 85C9BAEA5CEDD9438CD1C0196904B271 /* Pods-NumberField_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-NumberField_Tests-acknowledgements.markdown"; sourceTree = ""; }; 71 | 892FC661FAC7D447EE30A6EA6E17A0CC /* NumberKeyboard.xib */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.xib; path = NumberKeyboard.xib; sourceTree = ""; }; 72 | 8B27DBA624CEBA3782585FD63B7AC597 /* Pods-NumberField_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-NumberField_Example-acknowledgements.markdown"; sourceTree = ""; }; 73 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 74 | 9788A1FF58D12B2ED487A5F236B487A3 /* Pods-NumberField_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-NumberField_Tests-frameworks.sh"; sourceTree = ""; }; 75 | C61466CDE1C068C4AE4D568A2A2414FD /* NumberField.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = NumberField.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 76 | C6FBDF92122D0BF5647ADB678E9BD96F /* FakeCursor.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = FakeCursor.swift; sourceTree = ""; }; 77 | C93770406C75E44676FDE8A519FA852F /* Pods-NumberField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-NumberField_Example.debug.xcconfig"; sourceTree = ""; }; 78 | 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; }; 79 | D7057A0C6FF51025BD8B29FA50C89BE8 /* Pods-NumberField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-NumberField_Example.release.xcconfig"; sourceTree = ""; }; 80 | E28BD5E90CDA01C0DC3662EA1BC6EE2C /* Pods-NumberField_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-NumberField_Example-umbrella.h"; sourceTree = ""; }; 81 | E2C98D55006956E9FBF05B419BB3C1C8 /* Pods-NumberField_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-NumberField_Example-dummy.m"; sourceTree = ""; }; 82 | E8174C8D1E821511007A284B /* NumberFieldOld.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NumberFieldOld.swift; sourceTree = ""; }; 83 | E85D37891E821E5300F6A7AF /* UIControlEventsExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIControlEventsExtension.swift; sourceTree = ""; }; 84 | EE0E707A14B18DB3444016EF8053FE97 /* Pods-NumberField_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-NumberField_Example-resources.sh"; sourceTree = ""; }; 85 | F8B989AA19F912D128A62F808F751097 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 86 | /* End PBXFileReference section */ 87 | 88 | /* Begin PBXFrameworksBuildPhase section */ 89 | 03D73F7506B453322A10926FE69AA8C3 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | C1EC94B741EF90460A529C0B766D280D /* Foundation.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 457667C57802DCB1484DDE77E79669C0 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 8D8CBC0D3B734B2809C9F6343CF51B23 /* Foundation.framework in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | 8E22D9C7A30ECA0EF586F1E683D22198 /* Frameworks */ = { 106 | isa = PBXFrameworksBuildPhase; 107 | buildActionMask = 2147483647; 108 | files = ( 109 | ); 110 | runOnlyForDeploymentPostprocessing = 0; 111 | }; 112 | A546D206A51AF127B6E3659E4E31C475 /* Frameworks */ = { 113 | isa = PBXFrameworksBuildPhase; 114 | buildActionMask = 2147483647; 115 | files = ( 116 | 19FDF6B2258044294B94FE97EA61FC94 /* Foundation.framework in Frameworks */, 117 | ); 118 | runOnlyForDeploymentPostprocessing = 0; 119 | }; 120 | /* End PBXFrameworksBuildPhase section */ 121 | 122 | /* Begin PBXGroup section */ 123 | 0A12BD0F5302DC26D4314997B379207B /* NumberField */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 96367D6170E3840693C28790F0FB502B /* Classes */, 127 | ); 128 | path = NumberField; 129 | sourceTree = ""; 130 | }; 131 | 10BDC377C3217240A00BE593CD0505D0 /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 2E039B74BAFD1649ED03B53857D386E7 /* NumberField.bundle */, 135 | C61466CDE1C068C4AE4D568A2A2414FD /* NumberField.framework */, 136 | 7B5353E06AB6E3FDF32EFCAEAFC7335A /* Pods_NumberField_Example.framework */, 137 | 434F18456E6142EC79D4DF5DD220D526 /* Pods_NumberField_Tests.framework */, 138 | ); 139 | name = Products; 140 | sourceTree = ""; 141 | }; 142 | 1265E16098D2710252FA4C96B175BBE8 /* Pods-NumberField_Tests */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | F8B989AA19F912D128A62F808F751097 /* Info.plist */, 146 | 0B7F26D623B6924919A2A34E023902C1 /* Pods-NumberField_Tests.modulemap */, 147 | 85C9BAEA5CEDD9438CD1C0196904B271 /* Pods-NumberField_Tests-acknowledgements.markdown */, 148 | 3C0B07063DB8679D8FE0C5EEEB4D8A90 /* Pods-NumberField_Tests-acknowledgements.plist */, 149 | 49992FCD1CD6F76805E042FA233A0F9B /* Pods-NumberField_Tests-dummy.m */, 150 | 9788A1FF58D12B2ED487A5F236B487A3 /* Pods-NumberField_Tests-frameworks.sh */, 151 | 077D438639AA918E4C7B41DFD237A6F7 /* Pods-NumberField_Tests-resources.sh */, 152 | 765EDD627AAA810FAA697A2B0004F54B /* Pods-NumberField_Tests-umbrella.h */, 153 | 33DB6978DD8AEB97938668C47DA9990D /* Pods-NumberField_Tests.debug.xcconfig */, 154 | 80849E37B80A16BD6FED885150D5B627 /* Pods-NumberField_Tests.release.xcconfig */, 155 | ); 156 | name = "Pods-NumberField_Tests"; 157 | path = "Target Support Files/Pods-NumberField_Tests"; 158 | sourceTree = ""; 159 | }; 160 | 37A76F3D1287AC18424595DC5DB959BA /* Development Pods */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 71ED87A10C2AAB8C7191BA82715BBBBE /* NumberField */, 164 | ); 165 | name = "Development Pods"; 166 | sourceTree = ""; 167 | }; 168 | 5A229198368427D2CE48F93D0120A231 /* Targets Support Files */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 79EAFE4D2AEA7A2C84E43B15EFE64ED7 /* Pods-NumberField_Example */, 172 | 1265E16098D2710252FA4C96B175BBE8 /* Pods-NumberField_Tests */, 173 | ); 174 | name = "Targets Support Files"; 175 | sourceTree = ""; 176 | }; 177 | 71ED87A10C2AAB8C7191BA82715BBBBE /* NumberField */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 0A12BD0F5302DC26D4314997B379207B /* NumberField */, 181 | 7FAB901C93292D36D00768C04897712D /* Resources */, 182 | 7CA4B79AFA6EE3449A4130CD167E5B30 /* Support Files */, 183 | ); 184 | name = NumberField; 185 | path = ../..; 186 | sourceTree = ""; 187 | }; 188 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 192 | ); 193 | name = iOS; 194 | sourceTree = ""; 195 | }; 196 | 79EAFE4D2AEA7A2C84E43B15EFE64ED7 /* Pods-NumberField_Example */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | 2AD7ED84F05091676A0FA54C33BE6B89 /* Info.plist */, 200 | 35BA80EC945C66630663B23146334D19 /* Pods-NumberField_Example.modulemap */, 201 | 8B27DBA624CEBA3782585FD63B7AC597 /* Pods-NumberField_Example-acknowledgements.markdown */, 202 | 6CC7B9604DC8A77ECC6B8E671495C4E0 /* Pods-NumberField_Example-acknowledgements.plist */, 203 | E2C98D55006956E9FBF05B419BB3C1C8 /* Pods-NumberField_Example-dummy.m */, 204 | 470D9CA65C8CF7955613BDB5107E20A0 /* Pods-NumberField_Example-frameworks.sh */, 205 | EE0E707A14B18DB3444016EF8053FE97 /* Pods-NumberField_Example-resources.sh */, 206 | E28BD5E90CDA01C0DC3662EA1BC6EE2C /* Pods-NumberField_Example-umbrella.h */, 207 | C93770406C75E44676FDE8A519FA852F /* Pods-NumberField_Example.debug.xcconfig */, 208 | D7057A0C6FF51025BD8B29FA50C89BE8 /* Pods-NumberField_Example.release.xcconfig */, 209 | ); 210 | name = "Pods-NumberField_Example"; 211 | path = "Target Support Files/Pods-NumberField_Example"; 212 | sourceTree = ""; 213 | }; 214 | 7CA4B79AFA6EE3449A4130CD167E5B30 /* Support Files */ = { 215 | isa = PBXGroup; 216 | children = ( 217 | 5F6EA06765770559AAC775FCDD7A5CE1 /* Info.plist */, 218 | 4D18783AB9B6EB34C2D757321CFCD57D /* NumberField.modulemap */, 219 | 0E7FEF38F4F919CB4922F1C934DDF6BE /* NumberField.xcconfig */, 220 | 782434D0AD2F79597375A433227D8DA9 /* NumberField-dummy.m */, 221 | 18149C2E6102FF1F5F8121CCD4EB530F /* NumberField-prefix.pch */, 222 | 226FE31B52C56AC375D4F7A7DB0DB84D /* NumberField-umbrella.h */, 223 | 7A4103EEB672B9EC8D949E55FFA690FA /* ResourceBundle-NumberField-Info.plist */, 224 | ); 225 | name = "Support Files"; 226 | path = "Example/Pods/Target Support Files/NumberField"; 227 | sourceTree = ""; 228 | }; 229 | 7DB346D0F39D3F0E887471402A8071AB = { 230 | isa = PBXGroup; 231 | children = ( 232 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 233 | 37A76F3D1287AC18424595DC5DB959BA /* Development Pods */, 234 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 235 | 10BDC377C3217240A00BE593CD0505D0 /* Products */, 236 | 5A229198368427D2CE48F93D0120A231 /* Targets Support Files */, 237 | ); 238 | sourceTree = ""; 239 | }; 240 | 7FAB901C93292D36D00768C04897712D /* Resources */ = { 241 | isa = PBXGroup; 242 | children = ( 243 | 9F40388E029EE255EC49E3A7F24EE61F /* NumberField */, 244 | ); 245 | name = Resources; 246 | sourceTree = ""; 247 | }; 248 | 96367D6170E3840693C28790F0FB502B /* Classes */ = { 249 | isa = PBXGroup; 250 | children = ( 251 | C6FBDF92122D0BF5647ADB678E9BD96F /* FakeCursor.swift */, 252 | 087E5101FC10B58BDCBEABBB4B5D1646 /* NumberField.swift */, 253 | E8174C8D1E821511007A284B /* NumberFieldOld.swift */, 254 | 1B2AE88E07673814A0B92AE5B3DDF7E0 /* NumberKeyboard.swift */, 255 | 892FC661FAC7D447EE30A6EA6E17A0CC /* NumberKeyboard.xib */, 256 | E85D37891E821E5300F6A7AF /* UIControlEventsExtension.swift */, 257 | ); 258 | path = Classes; 259 | sourceTree = ""; 260 | }; 261 | 9F40388E029EE255EC49E3A7F24EE61F /* NumberField */ = { 262 | isa = PBXGroup; 263 | children = ( 264 | ECE893035FD646C1633280FDD2BA0447 /* Classes */, 265 | ); 266 | path = NumberField; 267 | sourceTree = ""; 268 | }; 269 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 270 | isa = PBXGroup; 271 | children = ( 272 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 273 | ); 274 | name = Frameworks; 275 | sourceTree = ""; 276 | }; 277 | ECE893035FD646C1633280FDD2BA0447 /* Classes */ = { 278 | isa = PBXGroup; 279 | children = ( 280 | ); 281 | path = Classes; 282 | sourceTree = ""; 283 | }; 284 | /* End PBXGroup section */ 285 | 286 | /* Begin PBXHeadersBuildPhase section */ 287 | 2286FF28CBE22E284F9C3EC3CC8563C5 /* Headers */ = { 288 | isa = PBXHeadersBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | BFA6C9DD4744112DD52790F600EB3B32 /* NumberField-umbrella.h in Headers */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | A5E0C2AAE3A36D3432FCACDF82292D49 /* Headers */ = { 296 | isa = PBXHeadersBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | 534AB5C5125A8D961A4F3705869473AA /* Pods-NumberField_Tests-umbrella.h in Headers */, 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | EE8DE742C82D9E2B20E463CF7F1F1517 /* Headers */ = { 304 | isa = PBXHeadersBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | 98533BD30EFC267677221E32CBB67FA7 /* Pods-NumberField_Example-umbrella.h in Headers */, 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | /* End PBXHeadersBuildPhase section */ 312 | 313 | /* Begin PBXNativeTarget section */ 314 | 46482E0CF961477F8E154B7BDFF514CC /* Pods-NumberField_Example */ = { 315 | isa = PBXNativeTarget; 316 | buildConfigurationList = 1BC1BFE25CF9E80DC436D2222BF11B4E /* Build configuration list for PBXNativeTarget "Pods-NumberField_Example" */; 317 | buildPhases = ( 318 | 4430A765A5FDC0EF518B706DA2533F1C /* Sources */, 319 | 457667C57802DCB1484DDE77E79669C0 /* Frameworks */, 320 | EE8DE742C82D9E2B20E463CF7F1F1517 /* Headers */, 321 | ); 322 | buildRules = ( 323 | ); 324 | dependencies = ( 325 | F38D715AF2AF344F4FD775E5D5251215 /* PBXTargetDependency */, 326 | ); 327 | name = "Pods-NumberField_Example"; 328 | productName = "Pods-NumberField_Example"; 329 | productReference = 7B5353E06AB6E3FDF32EFCAEAFC7335A /* Pods_NumberField_Example.framework */; 330 | productType = "com.apple.product-type.framework"; 331 | }; 332 | DBF3486888D41EF67A273488BF87A616 /* NumberField-NumberField */ = { 333 | isa = PBXNativeTarget; 334 | buildConfigurationList = 87C84302C3503E0D433E960E538F7AD5 /* Build configuration list for PBXNativeTarget "NumberField-NumberField" */; 335 | buildPhases = ( 336 | B51FFA6C8814224E1B97117964E4982F /* Sources */, 337 | 8E22D9C7A30ECA0EF586F1E683D22198 /* Frameworks */, 338 | 75636EDA647D98AB10BAF5274457E416 /* Resources */, 339 | ); 340 | buildRules = ( 341 | ); 342 | dependencies = ( 343 | ); 344 | name = "NumberField-NumberField"; 345 | productName = "NumberField-NumberField"; 346 | productReference = 2E039B74BAFD1649ED03B53857D386E7 /* NumberField.bundle */; 347 | productType = "com.apple.product-type.bundle"; 348 | }; 349 | E3295A206D4ADBA80FD2E8CDCFE0495F /* Pods-NumberField_Tests */ = { 350 | isa = PBXNativeTarget; 351 | buildConfigurationList = B91C1AD6FC8296C96114300F9A497ABB /* Build configuration list for PBXNativeTarget "Pods-NumberField_Tests" */; 352 | buildPhases = ( 353 | 8B2C7A83544DA831A52B64DBC2F45EF6 /* Sources */, 354 | 03D73F7506B453322A10926FE69AA8C3 /* Frameworks */, 355 | A5E0C2AAE3A36D3432FCACDF82292D49 /* Headers */, 356 | ); 357 | buildRules = ( 358 | ); 359 | dependencies = ( 360 | ); 361 | name = "Pods-NumberField_Tests"; 362 | productName = "Pods-NumberField_Tests"; 363 | productReference = 434F18456E6142EC79D4DF5DD220D526 /* Pods_NumberField_Tests.framework */; 364 | productType = "com.apple.product-type.framework"; 365 | }; 366 | F0F65D32604CE8F7CB71E4ABF8093D17 /* NumberField */ = { 367 | isa = PBXNativeTarget; 368 | buildConfigurationList = F7EDFBE3B0C28337B66D7577EE85D972 /* Build configuration list for PBXNativeTarget "NumberField" */; 369 | buildPhases = ( 370 | 5C04EC512BBBA1DF8C1D07C58F0729F0 /* Sources */, 371 | A546D206A51AF127B6E3659E4E31C475 /* Frameworks */, 372 | 52B55D6880BB97489626A2A9FF23FD70 /* Resources */, 373 | 2286FF28CBE22E284F9C3EC3CC8563C5 /* Headers */, 374 | ); 375 | buildRules = ( 376 | ); 377 | dependencies = ( 378 | 3295196E4F1C6EB7AD90A5B2855B3834 /* PBXTargetDependency */, 379 | ); 380 | name = NumberField; 381 | productName = NumberField; 382 | productReference = C61466CDE1C068C4AE4D568A2A2414FD /* NumberField.framework */; 383 | productType = "com.apple.product-type.framework"; 384 | }; 385 | /* End PBXNativeTarget section */ 386 | 387 | /* Begin PBXProject section */ 388 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 389 | isa = PBXProject; 390 | attributes = { 391 | LastSwiftUpdateCheck = 0730; 392 | LastUpgradeCheck = 0930; 393 | TargetAttributes = { 394 | F0F65D32604CE8F7CB71E4ABF8093D17 = { 395 | LastSwiftMigration = 0930; 396 | }; 397 | }; 398 | }; 399 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 400 | compatibilityVersion = "Xcode 3.2"; 401 | developmentRegion = English; 402 | hasScannedForEncodings = 0; 403 | knownRegions = ( 404 | en, 405 | ); 406 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 407 | productRefGroup = 10BDC377C3217240A00BE593CD0505D0 /* Products */; 408 | projectDirPath = ""; 409 | projectRoot = ""; 410 | targets = ( 411 | F0F65D32604CE8F7CB71E4ABF8093D17 /* NumberField */, 412 | DBF3486888D41EF67A273488BF87A616 /* NumberField-NumberField */, 413 | 46482E0CF961477F8E154B7BDFF514CC /* Pods-NumberField_Example */, 414 | E3295A206D4ADBA80FD2E8CDCFE0495F /* Pods-NumberField_Tests */, 415 | ); 416 | }; 417 | /* End PBXProject section */ 418 | 419 | /* Begin PBXResourcesBuildPhase section */ 420 | 52B55D6880BB97489626A2A9FF23FD70 /* Resources */ = { 421 | isa = PBXResourcesBuildPhase; 422 | buildActionMask = 2147483647; 423 | files = ( 424 | 226A844121F4991B82B30E0A97BD3147 /* NumberField.bundle in Resources */, 425 | ); 426 | runOnlyForDeploymentPostprocessing = 0; 427 | }; 428 | 75636EDA647D98AB10BAF5274457E416 /* Resources */ = { 429 | isa = PBXResourcesBuildPhase; 430 | buildActionMask = 2147483647; 431 | files = ( 432 | BAF3B0BE7487584FE423BB1588AA4796 /* NumberKeyboard.xib in Resources */, 433 | ); 434 | runOnlyForDeploymentPostprocessing = 0; 435 | }; 436 | /* End PBXResourcesBuildPhase section */ 437 | 438 | /* Begin PBXSourcesBuildPhase section */ 439 | 4430A765A5FDC0EF518B706DA2533F1C /* Sources */ = { 440 | isa = PBXSourcesBuildPhase; 441 | buildActionMask = 2147483647; 442 | files = ( 443 | 3B4312263E9C677275D452CA8A0EF26E /* Pods-NumberField_Example-dummy.m in Sources */, 444 | ); 445 | runOnlyForDeploymentPostprocessing = 0; 446 | }; 447 | 5C04EC512BBBA1DF8C1D07C58F0729F0 /* Sources */ = { 448 | isa = PBXSourcesBuildPhase; 449 | buildActionMask = 2147483647; 450 | files = ( 451 | C4EA157E44A5F3F31A4C7714BF9553C1 /* FakeCursor.swift in Sources */, 452 | E8174C8E1E821511007A284B /* NumberFieldOld.swift in Sources */, 453 | 9949686DD6C1892D9947BC7E1B10BBC8 /* NumberField-dummy.m in Sources */, 454 | E85D378A1E821E5300F6A7AF /* UIControlEventsExtension.swift in Sources */, 455 | A05207A02E59320D009B73E346541235 /* NumberField.swift in Sources */, 456 | D74D4B72C2B15B53E85C7F556D626A57 /* NumberKeyboard.swift in Sources */, 457 | 73F351A9E70851B2B1C10E11206ED7D6 /* NumberKeyboard.xib in Sources */, 458 | ); 459 | runOnlyForDeploymentPostprocessing = 0; 460 | }; 461 | 8B2C7A83544DA831A52B64DBC2F45EF6 /* Sources */ = { 462 | isa = PBXSourcesBuildPhase; 463 | buildActionMask = 2147483647; 464 | files = ( 465 | 34B7D32D07ED4624FAA403668832622F /* Pods-NumberField_Tests-dummy.m in Sources */, 466 | ); 467 | runOnlyForDeploymentPostprocessing = 0; 468 | }; 469 | B51FFA6C8814224E1B97117964E4982F /* Sources */ = { 470 | isa = PBXSourcesBuildPhase; 471 | buildActionMask = 2147483647; 472 | files = ( 473 | ); 474 | runOnlyForDeploymentPostprocessing = 0; 475 | }; 476 | /* End PBXSourcesBuildPhase section */ 477 | 478 | /* Begin PBXTargetDependency section */ 479 | 3295196E4F1C6EB7AD90A5B2855B3834 /* PBXTargetDependency */ = { 480 | isa = PBXTargetDependency; 481 | name = "NumberField-NumberField"; 482 | target = DBF3486888D41EF67A273488BF87A616 /* NumberField-NumberField */; 483 | targetProxy = AE20B0A1F0149DFD8B40EAF173F27E23 /* PBXContainerItemProxy */; 484 | }; 485 | F38D715AF2AF344F4FD775E5D5251215 /* PBXTargetDependency */ = { 486 | isa = PBXTargetDependency; 487 | name = NumberField; 488 | target = F0F65D32604CE8F7CB71E4ABF8093D17 /* NumberField */; 489 | targetProxy = 3D3933F2E1DA3868FD6FE3E5EC6C6D73 /* PBXContainerItemProxy */; 490 | }; 491 | /* End PBXTargetDependency section */ 492 | 493 | /* Begin XCBuildConfiguration section */ 494 | 59B042A655B7C20CBAB90E385BF4E4C7 /* Debug */ = { 495 | isa = XCBuildConfiguration; 496 | buildSettings = { 497 | ALWAYS_SEARCH_USER_PATHS = NO; 498 | CLANG_ANALYZER_NONNULL = YES; 499 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 500 | CLANG_CXX_LIBRARY = "libc++"; 501 | CLANG_ENABLE_MODULES = YES; 502 | CLANG_ENABLE_OBJC_ARC = YES; 503 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 504 | CLANG_WARN_BOOL_CONVERSION = YES; 505 | CLANG_WARN_COMMA = YES; 506 | CLANG_WARN_CONSTANT_CONVERSION = YES; 507 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 508 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 509 | CLANG_WARN_EMPTY_BODY = YES; 510 | CLANG_WARN_ENUM_CONVERSION = YES; 511 | CLANG_WARN_INFINITE_RECURSION = YES; 512 | CLANG_WARN_INT_CONVERSION = YES; 513 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 514 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 515 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 516 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 517 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 518 | CLANG_WARN_STRICT_PROTOTYPES = YES; 519 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 520 | CLANG_WARN_UNREACHABLE_CODE = YES; 521 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 522 | CODE_SIGNING_REQUIRED = NO; 523 | COPY_PHASE_STRIP = NO; 524 | ENABLE_STRICT_OBJC_MSGSEND = YES; 525 | ENABLE_TESTABILITY = YES; 526 | GCC_C_LANGUAGE_STANDARD = gnu99; 527 | GCC_DYNAMIC_NO_PIC = NO; 528 | GCC_NO_COMMON_BLOCKS = YES; 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 = 9.0; 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 | 60FA789D84285FD3356AB640F456E2A7 /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | baseConfigurationReference = 0E7FEF38F4F919CB4922F1C934DDF6BE /* NumberField.xcconfig */; 553 | buildSettings = { 554 | CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/NumberField"; 555 | ENABLE_STRICT_OBJC_MSGSEND = YES; 556 | GCC_NO_COMMON_BLOCKS = YES; 557 | INFOPLIST_FILE = "Target Support Files/NumberField/ResourceBundle-NumberField-Info.plist"; 558 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 559 | PRODUCT_NAME = NumberField; 560 | SDKROOT = iphoneos; 561 | SKIP_INSTALL = YES; 562 | TARGETED_DEVICE_FAMILY = "1,2"; 563 | WRAPPER_EXTENSION = bundle; 564 | }; 565 | name = Release; 566 | }; 567 | 67821F5CC7065C2DE9A2276C45014E13 /* Release */ = { 568 | isa = XCBuildConfiguration; 569 | baseConfigurationReference = 80849E37B80A16BD6FED885150D5B627 /* Pods-NumberField_Tests.release.xcconfig */; 570 | buildSettings = { 571 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 572 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 573 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 574 | CURRENT_PROJECT_VERSION = 1; 575 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 576 | DEFINES_MODULE = YES; 577 | DYLIB_COMPATIBILITY_VERSION = 1; 578 | DYLIB_CURRENT_VERSION = 1; 579 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 580 | ENABLE_STRICT_OBJC_MSGSEND = YES; 581 | GCC_NO_COMMON_BLOCKS = YES; 582 | INFOPLIST_FILE = "Target Support Files/Pods-NumberField_Tests/Info.plist"; 583 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 584 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 585 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 586 | MACH_O_TYPE = staticlib; 587 | MODULEMAP_FILE = "Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests.modulemap"; 588 | MTL_ENABLE_DEBUG_INFO = NO; 589 | OTHER_LDFLAGS = ""; 590 | OTHER_LIBTOOLFLAGS = ""; 591 | PODS_ROOT = "$(SRCROOT)"; 592 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 593 | PRODUCT_NAME = Pods_NumberField_Tests; 594 | SDKROOT = iphoneos; 595 | SKIP_INSTALL = YES; 596 | TARGETED_DEVICE_FAMILY = "1,2"; 597 | VERSIONING_SYSTEM = "apple-generic"; 598 | VERSION_INFO_PREFIX = ""; 599 | }; 600 | name = Release; 601 | }; 602 | 71CBFEF551A5008B6556261090A73BCE /* Debug */ = { 603 | isa = XCBuildConfiguration; 604 | baseConfigurationReference = 33DB6978DD8AEB97938668C47DA9990D /* Pods-NumberField_Tests.debug.xcconfig */; 605 | buildSettings = { 606 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 607 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 608 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 609 | CURRENT_PROJECT_VERSION = 1; 610 | DEBUG_INFORMATION_FORMAT = dwarf; 611 | DEFINES_MODULE = YES; 612 | DYLIB_COMPATIBILITY_VERSION = 1; 613 | DYLIB_CURRENT_VERSION = 1; 614 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 615 | ENABLE_STRICT_OBJC_MSGSEND = YES; 616 | GCC_NO_COMMON_BLOCKS = YES; 617 | INFOPLIST_FILE = "Target Support Files/Pods-NumberField_Tests/Info.plist"; 618 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 619 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 620 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 621 | MACH_O_TYPE = staticlib; 622 | MODULEMAP_FILE = "Target Support Files/Pods-NumberField_Tests/Pods-NumberField_Tests.modulemap"; 623 | MTL_ENABLE_DEBUG_INFO = YES; 624 | OTHER_LDFLAGS = ""; 625 | OTHER_LIBTOOLFLAGS = ""; 626 | PODS_ROOT = "$(SRCROOT)"; 627 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 628 | PRODUCT_NAME = Pods_NumberField_Tests; 629 | SDKROOT = iphoneos; 630 | SKIP_INSTALL = YES; 631 | TARGETED_DEVICE_FAMILY = "1,2"; 632 | VERSIONING_SYSTEM = "apple-generic"; 633 | VERSION_INFO_PREFIX = ""; 634 | }; 635 | name = Debug; 636 | }; 637 | 9AAF2BCACB70DD6BB8CA7DD6EE583A90 /* Release */ = { 638 | isa = XCBuildConfiguration; 639 | baseConfigurationReference = D7057A0C6FF51025BD8B29FA50C89BE8 /* Pods-NumberField_Example.release.xcconfig */; 640 | buildSettings = { 641 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 642 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 643 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 644 | CURRENT_PROJECT_VERSION = 1; 645 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 646 | DEFINES_MODULE = YES; 647 | DYLIB_COMPATIBILITY_VERSION = 1; 648 | DYLIB_CURRENT_VERSION = 1; 649 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 650 | ENABLE_STRICT_OBJC_MSGSEND = YES; 651 | GCC_NO_COMMON_BLOCKS = YES; 652 | INFOPLIST_FILE = "Target Support Files/Pods-NumberField_Example/Info.plist"; 653 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 654 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 655 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 656 | MACH_O_TYPE = staticlib; 657 | MODULEMAP_FILE = "Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example.modulemap"; 658 | MTL_ENABLE_DEBUG_INFO = NO; 659 | OTHER_LDFLAGS = ""; 660 | OTHER_LIBTOOLFLAGS = ""; 661 | PODS_ROOT = "$(SRCROOT)"; 662 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 663 | PRODUCT_NAME = Pods_NumberField_Example; 664 | SDKROOT = iphoneos; 665 | SKIP_INSTALL = YES; 666 | TARGETED_DEVICE_FAMILY = "1,2"; 667 | VERSIONING_SYSTEM = "apple-generic"; 668 | VERSION_INFO_PREFIX = ""; 669 | }; 670 | name = Release; 671 | }; 672 | B7324857C38B065FEB1EEE3105C2367A /* Release */ = { 673 | isa = XCBuildConfiguration; 674 | buildSettings = { 675 | ALWAYS_SEARCH_USER_PATHS = NO; 676 | CLANG_ANALYZER_NONNULL = YES; 677 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 678 | CLANG_CXX_LIBRARY = "libc++"; 679 | CLANG_ENABLE_MODULES = YES; 680 | CLANG_ENABLE_OBJC_ARC = YES; 681 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 682 | CLANG_WARN_BOOL_CONVERSION = YES; 683 | CLANG_WARN_COMMA = YES; 684 | CLANG_WARN_CONSTANT_CONVERSION = YES; 685 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 686 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 687 | CLANG_WARN_EMPTY_BODY = YES; 688 | CLANG_WARN_ENUM_CONVERSION = YES; 689 | CLANG_WARN_INFINITE_RECURSION = YES; 690 | CLANG_WARN_INT_CONVERSION = YES; 691 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 692 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 693 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 694 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 695 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 696 | CLANG_WARN_STRICT_PROTOTYPES = YES; 697 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 698 | CLANG_WARN_UNREACHABLE_CODE = YES; 699 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 700 | CODE_SIGNING_REQUIRED = NO; 701 | COPY_PHASE_STRIP = YES; 702 | ENABLE_NS_ASSERTIONS = NO; 703 | ENABLE_STRICT_OBJC_MSGSEND = YES; 704 | GCC_C_LANGUAGE_STANDARD = gnu99; 705 | GCC_NO_COMMON_BLOCKS = YES; 706 | GCC_PREPROCESSOR_DEFINITIONS = ( 707 | "POD_CONFIGURATION_RELEASE=1", 708 | "$(inherited)", 709 | ); 710 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 711 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 712 | GCC_WARN_UNDECLARED_SELECTOR = YES; 713 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 714 | GCC_WARN_UNUSED_FUNCTION = YES; 715 | GCC_WARN_UNUSED_VARIABLE = YES; 716 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 717 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 718 | STRIP_INSTALLED_PRODUCT = NO; 719 | SWIFT_COMPILATION_MODE = wholemodule; 720 | SYMROOT = "${SRCROOT}/../build"; 721 | VALIDATE_PRODUCT = YES; 722 | }; 723 | name = Release; 724 | }; 725 | C3A96C1A41A68C58F2CF10B75F8F9FCB /* Debug */ = { 726 | isa = XCBuildConfiguration; 727 | baseConfigurationReference = 0E7FEF38F4F919CB4922F1C934DDF6BE /* NumberField.xcconfig */; 728 | buildSettings = { 729 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 730 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 731 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 732 | CURRENT_PROJECT_VERSION = 1; 733 | DEBUG_INFORMATION_FORMAT = dwarf; 734 | DEFINES_MODULE = YES; 735 | DYLIB_COMPATIBILITY_VERSION = 1; 736 | DYLIB_CURRENT_VERSION = 1; 737 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 738 | ENABLE_STRICT_OBJC_MSGSEND = YES; 739 | GCC_NO_COMMON_BLOCKS = YES; 740 | GCC_PREFIX_HEADER = "Target Support Files/NumberField/NumberField-prefix.pch"; 741 | INFOPLIST_FILE = "Target Support Files/NumberField/Info.plist"; 742 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 743 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 744 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 745 | MODULEMAP_FILE = "Target Support Files/NumberField/NumberField.modulemap"; 746 | MTL_ENABLE_DEBUG_INFO = YES; 747 | PRODUCT_NAME = NumberField; 748 | SDKROOT = iphoneos; 749 | SKIP_INSTALL = YES; 750 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 751 | SWIFT_VERSION = 4.2; 752 | TARGETED_DEVICE_FAMILY = "1,2"; 753 | VERSIONING_SYSTEM = "apple-generic"; 754 | VERSION_INFO_PREFIX = ""; 755 | }; 756 | name = Debug; 757 | }; 758 | EA288D160460FE4E51BD3F53B164882E /* Release */ = { 759 | isa = XCBuildConfiguration; 760 | baseConfigurationReference = 0E7FEF38F4F919CB4922F1C934DDF6BE /* NumberField.xcconfig */; 761 | buildSettings = { 762 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 763 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 764 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 765 | CURRENT_PROJECT_VERSION = 1; 766 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 767 | DEFINES_MODULE = YES; 768 | DYLIB_COMPATIBILITY_VERSION = 1; 769 | DYLIB_CURRENT_VERSION = 1; 770 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 771 | ENABLE_STRICT_OBJC_MSGSEND = YES; 772 | GCC_NO_COMMON_BLOCKS = YES; 773 | GCC_PREFIX_HEADER = "Target Support Files/NumberField/NumberField-prefix.pch"; 774 | INFOPLIST_FILE = "Target Support Files/NumberField/Info.plist"; 775 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 776 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 777 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 778 | MODULEMAP_FILE = "Target Support Files/NumberField/NumberField.modulemap"; 779 | MTL_ENABLE_DEBUG_INFO = NO; 780 | PRODUCT_NAME = NumberField; 781 | SDKROOT = iphoneos; 782 | SKIP_INSTALL = YES; 783 | SWIFT_VERSION = 4.2; 784 | TARGETED_DEVICE_FAMILY = "1,2"; 785 | VERSIONING_SYSTEM = "apple-generic"; 786 | VERSION_INFO_PREFIX = ""; 787 | }; 788 | name = Release; 789 | }; 790 | F39AB1FC38A19836B38BFC6FF6E9FAAA /* Debug */ = { 791 | isa = XCBuildConfiguration; 792 | baseConfigurationReference = C93770406C75E44676FDE8A519FA852F /* Pods-NumberField_Example.debug.xcconfig */; 793 | buildSettings = { 794 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 795 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 796 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 797 | CURRENT_PROJECT_VERSION = 1; 798 | DEBUG_INFORMATION_FORMAT = dwarf; 799 | DEFINES_MODULE = YES; 800 | DYLIB_COMPATIBILITY_VERSION = 1; 801 | DYLIB_CURRENT_VERSION = 1; 802 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 803 | ENABLE_STRICT_OBJC_MSGSEND = YES; 804 | GCC_NO_COMMON_BLOCKS = YES; 805 | INFOPLIST_FILE = "Target Support Files/Pods-NumberField_Example/Info.plist"; 806 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 807 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 808 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 809 | MACH_O_TYPE = staticlib; 810 | MODULEMAP_FILE = "Target Support Files/Pods-NumberField_Example/Pods-NumberField_Example.modulemap"; 811 | MTL_ENABLE_DEBUG_INFO = YES; 812 | OTHER_LDFLAGS = ""; 813 | OTHER_LIBTOOLFLAGS = ""; 814 | PODS_ROOT = "$(SRCROOT)"; 815 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 816 | PRODUCT_NAME = Pods_NumberField_Example; 817 | SDKROOT = iphoneos; 818 | SKIP_INSTALL = YES; 819 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 820 | TARGETED_DEVICE_FAMILY = "1,2"; 821 | VERSIONING_SYSTEM = "apple-generic"; 822 | VERSION_INFO_PREFIX = ""; 823 | }; 824 | name = Debug; 825 | }; 826 | FD75D9D768952D9EE807C64FE66E0CA2 /* Debug */ = { 827 | isa = XCBuildConfiguration; 828 | baseConfigurationReference = 0E7FEF38F4F919CB4922F1C934DDF6BE /* NumberField.xcconfig */; 829 | buildSettings = { 830 | CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/NumberField"; 831 | ENABLE_STRICT_OBJC_MSGSEND = YES; 832 | GCC_NO_COMMON_BLOCKS = YES; 833 | INFOPLIST_FILE = "Target Support Files/NumberField/ResourceBundle-NumberField-Info.plist"; 834 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 835 | PRODUCT_NAME = NumberField; 836 | SDKROOT = iphoneos; 837 | SKIP_INSTALL = YES; 838 | TARGETED_DEVICE_FAMILY = "1,2"; 839 | WRAPPER_EXTENSION = bundle; 840 | }; 841 | name = Debug; 842 | }; 843 | /* End XCBuildConfiguration section */ 844 | 845 | /* Begin XCConfigurationList section */ 846 | 1BC1BFE25CF9E80DC436D2222BF11B4E /* Build configuration list for PBXNativeTarget "Pods-NumberField_Example" */ = { 847 | isa = XCConfigurationList; 848 | buildConfigurations = ( 849 | F39AB1FC38A19836B38BFC6FF6E9FAAA /* Debug */, 850 | 9AAF2BCACB70DD6BB8CA7DD6EE583A90 /* Release */, 851 | ); 852 | defaultConfigurationIsVisible = 0; 853 | defaultConfigurationName = Release; 854 | }; 855 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 856 | isa = XCConfigurationList; 857 | buildConfigurations = ( 858 | 59B042A655B7C20CBAB90E385BF4E4C7 /* Debug */, 859 | B7324857C38B065FEB1EEE3105C2367A /* Release */, 860 | ); 861 | defaultConfigurationIsVisible = 0; 862 | defaultConfigurationName = Release; 863 | }; 864 | 87C84302C3503E0D433E960E538F7AD5 /* Build configuration list for PBXNativeTarget "NumberField-NumberField" */ = { 865 | isa = XCConfigurationList; 866 | buildConfigurations = ( 867 | FD75D9D768952D9EE807C64FE66E0CA2 /* Debug */, 868 | 60FA789D84285FD3356AB640F456E2A7 /* Release */, 869 | ); 870 | defaultConfigurationIsVisible = 0; 871 | defaultConfigurationName = Release; 872 | }; 873 | B91C1AD6FC8296C96114300F9A497ABB /* Build configuration list for PBXNativeTarget "Pods-NumberField_Tests" */ = { 874 | isa = XCConfigurationList; 875 | buildConfigurations = ( 876 | 71CBFEF551A5008B6556261090A73BCE /* Debug */, 877 | 67821F5CC7065C2DE9A2276C45014E13 /* Release */, 878 | ); 879 | defaultConfigurationIsVisible = 0; 880 | defaultConfigurationName = Release; 881 | }; 882 | F7EDFBE3B0C28337B66D7577EE85D972 /* Build configuration list for PBXNativeTarget "NumberField" */ = { 883 | isa = XCConfigurationList; 884 | buildConfigurations = ( 885 | C3A96C1A41A68C58F2CF10B75F8F9FCB /* Debug */, 886 | EA288D160460FE4E51BD3F53B164882E /* Release */, 887 | ); 888 | defaultConfigurationIsVisible = 0; 889 | defaultConfigurationName = Release; 890 | }; 891 | /* End XCConfigurationList section */ 892 | }; 893 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 894 | } 895 | --------------------------------------------------------------------------------