├── AMPFloatingTextField ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── UITextFieldExtension.swift │ └── AMPFloatingTextField.swift ├── Example ├── .DS_Store ├── Pods │ ├── Target Support Files │ │ ├── AMPFloatingTextField │ │ │ ├── AMPFloatingTextField.modulemap │ │ │ ├── AMPFloatingTextField-dummy.m │ │ │ ├── AMPFloatingTextField-prefix.pch │ │ │ ├── AMPFloatingTextField-umbrella.h │ │ │ ├── AMPFloatingTextField.xcconfig │ │ │ └── Info.plist │ │ ├── Pods-AMPFloatingTextField_Tests │ │ │ ├── Pods-AMPFloatingTextField_Tests-acknowledgements.markdown │ │ │ ├── Pods-AMPFloatingTextField_Tests.modulemap │ │ │ ├── Pods-AMPFloatingTextField_Tests-dummy.m │ │ │ ├── Pods-AMPFloatingTextField_Tests-umbrella.h │ │ │ ├── Pods-AMPFloatingTextField_Tests.debug.xcconfig │ │ │ ├── Pods-AMPFloatingTextField_Tests.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-AMPFloatingTextField_Tests-acknowledgements.plist │ │ │ ├── Pods-AMPFloatingTextField_Tests-frameworks.sh │ │ │ └── Pods-AMPFloatingTextField_Tests-resources.sh │ │ └── Pods-AMPFloatingTextField_Example │ │ │ ├── Pods-AMPFloatingTextField_Example.modulemap │ │ │ ├── Pods-AMPFloatingTextField_Example-dummy.m │ │ │ ├── Pods-AMPFloatingTextField_Example-umbrella.h │ │ │ ├── Pods-AMPFloatingTextField_Example.debug.xcconfig │ │ │ ├── Pods-AMPFloatingTextField_Example.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-AMPFloatingTextField_Example-acknowledgements.markdown │ │ │ ├── Pods-AMPFloatingTextField_Example-acknowledgements.plist │ │ │ ├── Pods-AMPFloatingTextField_Example-frameworks.sh │ │ │ └── Pods-AMPFloatingTextField_Example-resources.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── AMPFloatingTextField.podspec.json │ └── Pods.xcodeproj │ │ ├── xcuserdata │ │ └── kuliza-282.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ ├── AMPFloatingTextField.xcscheme │ │ │ ├── Pods-AMPFloatingTextField_Tests.xcscheme │ │ │ └── Pods-AMPFloatingTextField_Example.xcscheme │ │ └── project.pbxproj ├── Podfile ├── AMPFloatingTextField.xcworkspace │ ├── xcuserdata │ │ └── kuliza-282.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── contents.xcworkspacedata ├── AMPFloatingTextField.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcuserdata │ │ └── kuliza-282.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── AMPFloatingTextField-Example.xcscheme │ └── project.pbxproj ├── Podfile.lock ├── AMPFloatingTextField │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.xib │ ├── AppDelegate.swift │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── Tests.swift ├── screenshot └── titlewithbottomerrorlable.png ├── LICENSE ├── .gitignore ├── README.md └── AMPFloatingTextField.podspec /AMPFloatingTextField/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /AMPFloatingTextField/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Example/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ansu/AMPFloatingTextField/HEAD/Example/.DS_Store -------------------------------------------------------------------------------- /screenshot/titlewithbottomerrorlable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ansu/AMPFloatingTextField/HEAD/screenshot/titlewithbottomerrorlable.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMPFloatingTextField/AMPFloatingTextField.modulemap: -------------------------------------------------------------------------------- 1 | framework module AMPFloatingTextField { 2 | umbrella header "AMPFloatingTextField-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMPFloatingTextField/AMPFloatingTextField-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AMPFloatingTextField : NSObject 3 | @end 4 | @implementation PodsDummy_AMPFloatingTextField 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'AMPFloatingTextField_Example' do 4 | pod 'AMPFloatingTextField', :path => '../' 5 | 6 | target 'AMPFloatingTextField_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_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/AMPFloatingTextField.xcworkspace/xcuserdata/kuliza-282.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ansu/AMPFloatingTextField/HEAD/Example/AMPFloatingTextField.xcworkspace/xcuserdata/kuliza-282.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Example/AMPFloatingTextField.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AMPFloatingTextField_Tests { 2 | umbrella header "Pods-AMPFloatingTextField_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AMPFloatingTextField_Example { 2 | umbrella header "Pods-AMPFloatingTextField_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AMPFloatingTextField_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AMPFloatingTextField_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AMPFloatingTextField_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AMPFloatingTextField_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMPFloatingTextField/AMPFloatingTextField-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/AMPFloatingTextField.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AMPFloatingTextField (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AMPFloatingTextField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AMPFloatingTextField: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | AMPFloatingTextField: a4d6c4ee199a3eec464b049494945fa1758ecce3 13 | 14 | PODFILE CHECKSUM: bf3e24c6fba0dbcb97a2dc66c42552cef14f3f56 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AMPFloatingTextField (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AMPFloatingTextField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AMPFloatingTextField: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | AMPFloatingTextField: a4d6c4ee199a3eec464b049494945fa1758ecce3 13 | 14 | PODFILE CHECKSUM: bf3e24c6fba0dbcb97a2dc66c42552cef14f3f56 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMPFloatingTextField/AMPFloatingTextField-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 AMPFloatingTextFieldVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char AMPFloatingTextFieldVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_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_AMPFloatingTextField_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AMPFloatingTextField_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_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_AMPFloatingTextField_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AMPFloatingTextField_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField.xcodeproj/xcuserdata/kuliza-282.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SuppressBuildableAutocreation 6 | 7 | 607FACCF1AFB9204008FA782 8 | 9 | primary 10 | 11 | 12 | 607FACE41AFB9204008FA782 13 | 14 | primary 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMPFloatingTextField/AMPFloatingTextField.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/AMPFloatingTextField 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-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMPFloatingTextField" 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/AMPFloatingTextField/AMPFloatingTextField.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMPFloatingTextField" 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/AMPFloatingTextField/AMPFloatingTextField.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /AMPFloatingTextField/Classes/UITextFieldExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITextFieldExtension.swift 3 | // Pods 4 | // 5 | // Created by Kuliza-282 on 13/09/17. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | extension UITextField { 12 | /// Moves the caret to the correct position by removing the trailing whitespace 13 | func fixCaretPosition() { 14 | // Moving the caret to the correct position by removing the trailing whitespace 15 | // http://stackoverflow.com/questions/14220187/uitextfield-has-trailing-whitespace-after-securetextentry-toggle 16 | 17 | let beginning = beginningOfDocument 18 | selectedTextRange = textRange(from: beginning, to: beginning) 19 | let end = endOfDocument 20 | selectedTextRange = textRange(from: end, to: end) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMPFloatingTextField" 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/AMPFloatingTextField/AMPFloatingTextField.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AMPFloatingTextField" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AMPFloatingTextField" 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/AMPFloatingTextField/AMPFloatingTextField.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AMPFloatingTextField" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import AMPFloatingTextField 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 | measure { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/AMPFloatingTextField.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AMPFloatingTextField", 3 | "version": "0.1.0", 4 | "summary": "AMPFloatingTextField is a beautiful implementation of the floating title and error lable pattern", 5 | "description": "AMPFloatingTextField is a beautiful implementation of the floating title and error lable pattern. This will display the title on top and error below the text field", 6 | "homepage": "https://github.com/ansu/AMPFloatingTextField", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "ansu": "ansu.rajesh@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/ansu/AMPFloatingTextField.git", 16 | "tag": "0.1.0" 17 | }, 18 | "social_media_url": "https://twitter.com/ansujain", 19 | "platforms": { 20 | "ios": "8.0" 21 | }, 22 | "source_files": "AMPFloatingTextField/Classes/**/*" 23 | } 24 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AMPFloatingTextField/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-AMPFloatingTextField_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-AMPFloatingTextField_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-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_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 ansujain123 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/Pods/Pods.xcodeproj/xcuserdata/kuliza-282.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AMPFloatingTextField.xcscheme 8 | 9 | isShown 10 | 11 | 12 | Pods-AMPFloatingTextField_Example.xcscheme 13 | 14 | isShown 15 | 16 | 17 | Pods-AMPFloatingTextField_Tests.xcscheme 18 | 19 | isShown 20 | 21 | 22 | 23 | SuppressBuildableAutocreation 24 | 25 | 77A5D20F8A91182E8D4C6F0BE5F4095E 26 | 27 | primary 28 | 29 | 30 | BD38BE980C883E62B8D65E358F610658 31 | 32 | primary 33 | 34 | 35 | E752C47DC2FE0A334F5AC38C3A123B89 36 | 37 | primary 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ##### 2 | # OS X temporary files that should never be committed 3 | .DS_Store 4 | *.swp 5 | *.lock 6 | profile 7 | 8 | #### 9 | # Xcode temporary files that should never be committed 10 | *~.nib 11 | 12 | #### 13 | # Objective-C/Swift specific 14 | *.hmap 15 | *.ipa 16 | 17 | #### 18 | # Xcode build files 19 | DerivedData/ 20 | build/ 21 | Builds/ 22 | 23 | ##### 24 | # Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups) 25 | *.pbxuser 26 | *.mode1v3 27 | *.mode2v3 28 | *.perspectivev3 29 | !default.pbxuser 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.perspectivev3 33 | 34 | #### 35 | # Xcode 4 36 | xcuserdata 37 | !xcschemes 38 | # Xcode 4 39 | *.moved-aside 40 | 41 | #### 42 | # XCode 4 workspaces - more detailed 43 | !xcshareddata 44 | !default.xcworkspace 45 | *.xcworkspacedata 46 | 47 | 48 | #### 49 | # Xcode 5 50 | *.xccheckout 51 | *.xcuserstate 52 | 53 | #### 54 | # Xcode 7 55 | *.xcscmblueprint 56 | 57 | #### 58 | # AppCode 59 | .idea/ 60 | 61 | #### 62 | # Other Xcode files 63 | profile 64 | *.hmap 65 | *.ipa 66 | 67 | #### 68 | # CocoaPods 69 | Pods/ 70 | 71 | #### 72 | # Carthage 73 | Carthage/Build 74 | 75 | #### 76 | # docs folder 77 | docs/ 78 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## AMPFloatingTextField 5 | 6 | Copyright (c) 2017 ansujain123 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AMPFloatingTextField 2 | 3 | When we first used SkyFloatingLabelTextField, instantly we fell in love with its effects. Then we got a completely different scenario which could not be handled with it, hence, decided to create something of our own. 4 | 5 | Hope you'll like it :) 6 | 7 | ![AMPFloatingTextField](https://github.com/ansu/AMPFloatingTextField/blob/master/screenshot/titlewithbottomerrorlable.png) 8 | 9 | Version: 1.0 10 | 11 | And, we are not stopping here, many more customizations are on the way. 12 | 13 | # Credits 14 | 15 | AMPFloatingTextField is written and maintained by Ansu [@ansu](https://github.com/ansu), Mohit [@Mohit95](https://github.com/mohit95) and Pushpendra [@pushpendra65](https://github.com/pushpendra65) 16 | 17 | # AMPFloatingTextField 18 | 19 | [![CI Status](http://img.shields.io/travis/ansujain123/AMPFloatingTextField.svg?style=flat)](https://travis-ci.org/ansujain123/AMPFloatingTextField) 20 | [![Version](https://img.shields.io/cocoapods/v/AMPFloatingTextField.svg?style=flat)](http://cocoapods.org/pods/AMPFloatingTextField) 21 | [![License](https://img.shields.io/cocoapods/l/AMPFloatingTextField.svg?style=flat)](http://cocoapods.org/pods/AMPFloatingTextField) 22 | [![Platform](https://img.shields.io/cocoapods/p/AMPFloatingTextField.svg?style=flat)](http://cocoapods.org/pods/AMPFloatingTextField) 23 | 24 | ## Example 25 | 26 | To run the example project, clone the repo and run `pod install` from the Example directory first. 27 | 28 | ## Requirements 29 | 30 | ## Installation 31 | 32 | AMPFloatingTextField is available through [CocoaPods](http://cocoapods.org). To install 33 | it, simply add the following line to your Podfile: 34 | 35 | ```ruby 36 | pod 'AMPFloatingTextField' 37 | ``` 38 | 39 | ## Author 40 | 41 | ansu, ansu.rajesh@gmail.com 42 | 43 | ## License 44 | 45 | AMPFloatingTextField is available under the MIT license. See the LICENSE file for more info. 46 | -------------------------------------------------------------------------------- /AMPFloatingTextField.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint AMPFloatingTextField.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 = 'AMPFloatingTextField' 11 | s.version = '0.1.0' 12 | s.summary = 'AMPFloatingTextField is a beautiful implementation of the floating title and error lable pattern' 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 = 'AMPFloatingTextField is a beautiful implementation of the floating title and error lable pattern. This will display the title on top and error below the text field' 21 | 22 | 23 | s.homepage = 'https://github.com/ansu/AMPFloatingTextField' 24 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 25 | s.license = { :type => 'MIT', :file => 'LICENSE' } 26 | s.author = { 'ansu' => 'ansu.rajesh@gmail.com' } 27 | s.source = { :git => 'https://github.com/ansu/AMPFloatingTextField.git', :tag => s.version.to_s } 28 | s.social_media_url = 'https://twitter.com/ansujain' 29 | 30 | s.ios.deployment_target = '8.0' 31 | 32 | s.source_files = 'AMPFloatingTextField/Classes/**/*' 33 | 34 | # s.resource_bundles = { 35 | # 'AMPFloatingTextField' => ['AMPFloatingTextField/Assets/*.png'] 36 | # } 37 | 38 | # s.public_header_files = 'Pod/Classes/**/*.h' 39 | # s.frameworks = 'UIKit', 'MapKit' 40 | # s.dependency 'AFNetworking', '~> 2.3' 41 | end 42 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AMPFloatingTextField 4 | // 5 | // Created by ansujain123 on 09/13/2017. 6 | // Copyright (c) 2017 ansujain123. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/kuliza-282.xcuserdatad/xcschemes/AMPFloatingTextField.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_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 ansujain123 <ansu.jain@kuliza.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | AMPFloatingTextField 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/kuliza-282.xcuserdatad/xcschemes/Pods-AMPFloatingTextField_Tests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/kuliza-282.xcuserdatad/xcschemes/Pods-AMPFloatingTextField_Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField/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/AMPFloatingTextField/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AMPFloatingTextField 4 | // 5 | // Created by ansujain123 on 09/13/2017. 6 | // Copyright (c) 2017 ansujain123. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AMPFloatingTextField 11 | 12 | class ViewController: UIViewController, UITextFieldDelegate { 13 | 14 | let emailField = AMPFloatingTextField(frame: CGRect(x: 10, y: 50, width: 400, height: 60)) 15 | 16 | let lightGreyColor: UIColor = UIColor(red: 197 / 255, green: 205 / 255, blue: 205 / 255, alpha: 1.0) 17 | let darkGreyColor: UIColor = UIColor(red: 52 / 255, green: 42 / 255, blue: 61 / 255, alpha: 1.0) 18 | let overcastBlueColor: UIColor = UIColor(red: 0, green: 187 / 255, blue: 204 / 255, alpha: 1.0) 19 | 20 | override func viewDidLoad() { 21 | super.viewDidLoad() 22 | emailField.delegate = self 23 | 24 | emailField.placeholder = NSLocalizedString( 25 | "Email", 26 | tableName: "AMPFloatingTextField", 27 | comment: "placeholder for Email field" 28 | ) 29 | emailField.selectedTitle = NSLocalizedString( 30 | "Email", 31 | tableName: "AMPFloatingTextField", 32 | comment: "selected title for Email field" 33 | ) 34 | emailField.title = NSLocalizedString( 35 | "Email", 36 | tableName: "AMPFloatingTextField", 37 | comment: "title for Email field" 38 | ) 39 | view.addSubview(emailField) 40 | applySkyscannerTheme(textField: emailField) 41 | // Do any additional setup after loading the view, typically from a nib. 42 | } 43 | 44 | override func didReceiveMemoryWarning() { 45 | super.didReceiveMemoryWarning() 46 | // Dispose of any resources that can be recreated. 47 | } 48 | 49 | func applySkyscannerTheme(textField: AMPFloatingTextField) { 50 | 51 | textField.tintColor = overcastBlueColor 52 | 53 | textField.textColor = .black 54 | textField.errorColor = .red 55 | textField.activeBackgroundColor = lightGreyColor 56 | textField.inActiveBackgroundColor = lightGreyColor 57 | textField.errorBackGroundColor = UIColor.red.withAlphaComponent(0.2) 58 | textField.placeholderColor = UIColor.white 59 | textField.lineColor = UIColor.red 60 | textField.selectedTitleColor = darkGreyColor 61 | 62 | // Set custom fonts for the title, placeholder and textfield labels 63 | textField.titleLabel.font = UIFont.systemFont(ofSize: 12) 64 | textField.placeholderFont = UIFont.systemFont(ofSize: 18) 65 | textField.font = UIFont.systemFont(ofSize: 18) 66 | textField.isImmediateValidation = true 67 | } 68 | } 69 | 70 | extension ViewController { 71 | 72 | // MARK: - Delegate 73 | 74 | func textFieldShouldReturn(_ textField: UITextField) -> Bool { 75 | // Validate the email field 76 | if textField == emailField { 77 | validateEmailField() 78 | } 79 | 80 | // When pressing return, move to the next field 81 | let nextTag = textField.tag + 1 82 | if let nextResponder = textField.superview?.viewWithTag(nextTag) as UIResponder! { 83 | nextResponder.becomeFirstResponder() 84 | } else { 85 | textField.resignFirstResponder() 86 | } 87 | return false 88 | } 89 | 90 | @IBAction func validateEmailField() { 91 | validateEmailTextFieldWithText(email: emailField.text) 92 | } 93 | 94 | func validateEmailTextFieldWithText(email: String?) { 95 | guard let email = email else { 96 | emailField.errorMessage = nil 97 | return 98 | } 99 | 100 | if email.characters.isEmpty { 101 | emailField.errorMessage = nil 102 | } else if !validateEmail(email) { 103 | emailField.errorMessage = NSLocalizedString( 104 | "Email not valid", 105 | tableName: "AMPFloatingTextField", 106 | comment: " " 107 | ) 108 | } else { 109 | emailField.errorMessage = nil 110 | } 111 | } 112 | 113 | // MARK: - validation 114 | 115 | func validateEmail(_ candidate: String) -> Bool { 116 | 117 | // NOTE: validating email addresses with regex is usually not the best idea. 118 | // This implementation is for demonstration purposes only and is not recommended for production use. 119 | // Regex source and more information here: http://emailregex.com 120 | 121 | let emailRegex = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}" 122 | return NSPredicate(format: "SELF MATCHES %@", emailRegex).evaluate(with: candidate) 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_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 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 10 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 11 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 12 | 13 | install_framework() 14 | { 15 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 16 | local source="${BUILT_PRODUCTS_DIR}/$1" 17 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 18 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 19 | elif [ -r "$1" ]; then 20 | local source="$1" 21 | fi 22 | 23 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | 25 | if [ -L "${source}" ]; then 26 | echo "Symlinked..." 27 | source="$(readlink "${source}")" 28 | fi 29 | 30 | # Use filter instead of exclude so missing patterns don't throw errors. 31 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 32 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 33 | 34 | local basename 35 | basename="$(basename -s .framework "$1")" 36 | binary="${destination}/${basename}.framework/${basename}" 37 | if ! [ -r "$binary" ]; then 38 | binary="${destination}/${basename}" 39 | fi 40 | 41 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 42 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 43 | strip_invalid_archs "$binary" 44 | fi 45 | 46 | # Resign the code if required by the build settings to avoid unstable apps 47 | code_sign_if_enabled "${destination}/$(basename "$1")" 48 | 49 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 50 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 51 | local swift_runtime_libs 52 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 53 | for lib in $swift_runtime_libs; do 54 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 55 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 56 | code_sign_if_enabled "${destination}/${lib}" 57 | done 58 | fi 59 | } 60 | 61 | # Copies the dSYM of a vendored framework 62 | install_dsym() { 63 | local source="$1" 64 | if [ -r "$source" ]; then 65 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" 66 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" 67 | fi 68 | } 69 | 70 | # Signs a framework with the provided identity 71 | code_sign_if_enabled() { 72 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 73 | # Use the current code_sign_identitiy 74 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 75 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 76 | 77 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 78 | code_sign_cmd="$code_sign_cmd &" 79 | fi 80 | echo "$code_sign_cmd" 81 | eval "$code_sign_cmd" 82 | fi 83 | } 84 | 85 | # Strip invalid architectures 86 | strip_invalid_archs() { 87 | binary="$1" 88 | # Get architectures for current file 89 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 90 | stripped="" 91 | for arch in $archs; do 92 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 93 | # Strip non-valid architectures in-place 94 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 95 | stripped="$stripped $arch" 96 | fi 97 | done 98 | if [[ "$stripped" ]]; then 99 | echo "Stripped $binary of architectures:$stripped" 100 | fi 101 | } 102 | 103 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 104 | wait 105 | fi 106 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField.xcodeproj/xcshareddata/xcschemes/AMPFloatingTextField-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-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_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 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 10 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 11 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 12 | 13 | install_framework() 14 | { 15 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 16 | local source="${BUILT_PRODUCTS_DIR}/$1" 17 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 18 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 19 | elif [ -r "$1" ]; then 20 | local source="$1" 21 | fi 22 | 23 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | 25 | if [ -L "${source}" ]; then 26 | echo "Symlinked..." 27 | source="$(readlink "${source}")" 28 | fi 29 | 30 | # Use filter instead of exclude so missing patterns don't throw errors. 31 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 32 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 33 | 34 | local basename 35 | basename="$(basename -s .framework "$1")" 36 | binary="${destination}/${basename}.framework/${basename}" 37 | if ! [ -r "$binary" ]; then 38 | binary="${destination}/${basename}" 39 | fi 40 | 41 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 42 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 43 | strip_invalid_archs "$binary" 44 | fi 45 | 46 | # Resign the code if required by the build settings to avoid unstable apps 47 | code_sign_if_enabled "${destination}/$(basename "$1")" 48 | 49 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 50 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 51 | local swift_runtime_libs 52 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 53 | for lib in $swift_runtime_libs; do 54 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 55 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 56 | code_sign_if_enabled "${destination}/${lib}" 57 | done 58 | fi 59 | } 60 | 61 | # Copies the dSYM of a vendored framework 62 | install_dsym() { 63 | local source="$1" 64 | if [ -r "$source" ]; then 65 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" 66 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" 67 | fi 68 | } 69 | 70 | # Signs a framework with the provided identity 71 | code_sign_if_enabled() { 72 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 73 | # Use the current code_sign_identitiy 74 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 75 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 76 | 77 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 78 | code_sign_cmd="$code_sign_cmd &" 79 | fi 80 | echo "$code_sign_cmd" 81 | eval "$code_sign_cmd" 82 | fi 83 | } 84 | 85 | # Strip invalid architectures 86 | strip_invalid_archs() { 87 | binary="$1" 88 | # Get architectures for current file 89 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 90 | stripped="" 91 | for arch in $archs; do 92 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 93 | # Strip non-valid architectures in-place 94 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 95 | stripped="$stripped $arch" 96 | fi 97 | done 98 | if [[ "$stripped" ]]; then 99 | echo "Stripped $binary of architectures:$stripped" 100 | fi 101 | } 102 | 103 | 104 | if [[ "$CONFIGURATION" == "Debug" ]]; then 105 | install_framework "${BUILT_PRODUCTS_DIR}/AMPFloatingTextField/AMPFloatingTextField.framework" 106 | fi 107 | if [[ "$CONFIGURATION" == "Release" ]]; then 108 | install_framework "${BUILT_PRODUCTS_DIR}/AMPFloatingTextField/AMPFloatingTextField.framework" 109 | fi 110 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 111 | wait 112 | fi 113 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_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 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | 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}" || true 56 | 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} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | 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}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_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 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | 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}" || true 56 | 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} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | 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}" 106 | fi 107 | -------------------------------------------------------------------------------- /AMPFloatingTextField/Classes/AMPFloatingTextField.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AMPFloatingTextField.swift 3 | // Pods 4 | // 5 | // Created by Kuliza-282 on 13/09/17. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | /** 12 | A beautiful textfield implementation with support for top title label, bottom error message and placeholder. 13 | */ 14 | 15 | public protocol Rule { 16 | var regex: String { get } 17 | var message: String { get } 18 | } 19 | 20 | @IBDesignable 21 | open class AMPFloatingTextField: UITextField { 22 | 23 | fileprivate func updateTextAligment() { 24 | textAlignment = .left 25 | titleLabel.textAlignment = .left 26 | } 27 | 28 | // MARK: Animation timing 29 | /// The value of the title appearing duration 30 | open dynamic var titleFadeInDuration: TimeInterval = 0.2 31 | /// The value of the title disappearing duration 32 | open dynamic var titleFadeOutDuration: TimeInterval = 0.3 33 | 34 | // MARK: Colors 35 | fileprivate var cachedTextColor: UIColor? 36 | private let borderLayer = CALayer() 37 | 38 | var rules: [Rule]? 39 | fileprivate var isTextValid: Bool = false 40 | fileprivate var cachedErrorMessage: String! 41 | 42 | open var isImmediateValidation: Bool = false 43 | 44 | // This property applies a thickness to the border of the control. The default value for this property is 2 points. 45 | @IBInspectable open var borderSize: CGFloat = 2.0 { 46 | didSet { 47 | updateBorder() 48 | } 49 | } 50 | 51 | // The color of the border when it has content. By default, there will be no color 52 | @IBInspectable open dynamic var activeBorderColor: UIColor = .clear { 53 | didSet { 54 | updateBorder() 55 | updateBackground() 56 | } 57 | } 58 | 59 | // The color of the border when it has no content. By default, there will be no color 60 | @IBInspectable open dynamic var inactiveBorderColor: UIColor = .clear { 61 | didSet { 62 | updateBorder() 63 | updateBackground() 64 | } 65 | } 66 | 67 | // The color of the input's background when it has content. When it's not focused it reverts to the color of the `inactiveBorderColor`. 68 | @IBInspectable open dynamic var activeBackgroundColor: UIColor = .clear { 69 | didSet { 70 | updateBackground() 71 | } 72 | } 73 | 74 | @IBInspectable open dynamic var inActiveBackgroundColor: UIColor = .clear { 75 | didSet { 76 | updateBackground() 77 | } 78 | } 79 | 80 | @IBInspectable open dynamic var errorBackGroundColor: UIColor = .clear { 81 | didSet { 82 | updateBorder() 83 | updateBackground() 84 | } 85 | } 86 | 87 | // The scale of the placeholder font. This property determines the size of the placeholder label relative to the font size of the text field. 88 | @IBInspectable open dynamic var placeholderFontScale: CGFloat = 0.7 { 89 | didSet { 90 | updatePlaceholder() 91 | } 92 | } 93 | 94 | /// A UIColor value that determines the text color of the editable text 95 | @IBInspectable 96 | open dynamic override var textColor: UIColor? { 97 | set { 98 | cachedTextColor = newValue 99 | updateControl(false) 100 | } 101 | get { 102 | return cachedTextColor 103 | } 104 | } 105 | 106 | /// A UIColor value that determines text color of the placeholder label 107 | @IBInspectable open dynamic var placeholderColor: UIColor = UIColor.lightGray { 108 | didSet { 109 | updatePlaceholder() 110 | } 111 | } 112 | 113 | /// A UIFont value that determines text color of the placeholder label 114 | @IBInspectable open dynamic var placeholderFont: UIFont? { 115 | didSet { 116 | updatePlaceholder() 117 | } 118 | } 119 | 120 | fileprivate func updatePlaceholder() { 121 | if let placeholder = placeholder, let font = placeholderFont ?? font { 122 | attributedPlaceholder = NSAttributedString( 123 | string: placeholder, 124 | attributes: [NSForegroundColorAttributeName: placeholderColor, NSFontAttributeName: font] 125 | ) 126 | } 127 | } 128 | 129 | /// A UIFont value that determines the text font of the title label 130 | @IBInspectable open dynamic var titleFont: UIFont = .systemFont(ofSize: 13) { 131 | didSet { 132 | updateTitleLabel() 133 | } 134 | } 135 | 136 | /// A UIColor value that determines the text color of the title label when in the normal state 137 | @IBInspectable open dynamic var titleColor: UIColor = .gray { 138 | didSet { 139 | updateTitleColor() 140 | } 141 | } 142 | 143 | /// A UIColor value that determines the color of the bottom line when in the normal state 144 | @IBInspectable open dynamic var lineColor: UIColor = .lightGray { 145 | didSet { 146 | updateLineColor() 147 | } 148 | } 149 | 150 | /// A UIColor value that determines the color used for the title label and line when the error message is not `nil` 151 | @IBInspectable open dynamic var errorColor: UIColor = .red { 152 | didSet { 153 | updateColors() 154 | } 155 | } 156 | 157 | /// A UIColor value that determines the text color of the title label when editing 158 | @IBInspectable open dynamic var selectedTitleColor: UIColor = .blue { 159 | didSet { 160 | updateTitleColor() 161 | } 162 | } 163 | 164 | /// A CGFloat value that determines the height for the bottom line when the control is in the normal state 165 | @IBInspectable open dynamic var lineHeight: CGFloat = 0.5 { 166 | didSet { 167 | updateLineView() 168 | setNeedsDisplay() 169 | } 170 | } 171 | 172 | // MARK: View components 173 | 174 | /// The internal `UIView` to display the line below the text input. 175 | open var lineView: UIView! 176 | 177 | /// The internal `UILabel` that displays the selected, deselected title or error message based on the current state. 178 | 179 | open var titleLabel: UILabel! 180 | open var errorLabel: UILabel! 181 | open var tickView: UILabel! 182 | 183 | // MARK: Properties 184 | 185 | // Update Border Layer 186 | private func updateBorder() { 187 | 188 | borderLayer.frame = CGRect(x: bounds.origin.x, y: titleHeight(), width: bounds.size.width, 189 | height: bounds.size.height - titleHeight() * 2 - lineHeight 190 | ) 191 | borderLayer.borderWidth = borderSize 192 | if hasErrorMessage { 193 | borderLayer.borderColor = errorBackGroundColor.cgColor 194 | } else { 195 | borderLayer.borderColor = (isFirstResponder || !(text!.isEmpty)) ? activeBorderColor.cgColor : inactiveBorderColor.cgColor 196 | } 197 | } 198 | 199 | // Update Border layer background color 200 | private func updateBackground() { 201 | 202 | if hasErrorMessage { 203 | borderLayer.backgroundColor = errorBackGroundColor.cgColor 204 | } else { 205 | if isFirstResponder || !(text!.isEmpty) { 206 | borderLayer.backgroundColor = activeBackgroundColor.cgColor 207 | } else { 208 | borderLayer.backgroundColor = inActiveBackgroundColor.cgColor 209 | } 210 | } 211 | } 212 | 213 | // Identifies whether the text object should hide the text being entered. 214 | open override var isSecureTextEntry: Bool { 215 | set { 216 | super.isSecureTextEntry = newValue 217 | fixCaretPosition() 218 | } 219 | get { 220 | return super.isSecureTextEntry 221 | } 222 | } 223 | 224 | /// A String value for the error message to display. 225 | open var errorMessage: String? { 226 | didSet { 227 | updateControl(true) 228 | } 229 | } 230 | 231 | /// The backing property for the highlighted property 232 | fileprivate var _highlighted: Bool = false 233 | 234 | /** 235 | A Boolean value that determines whether the receiver is highlighted. 236 | When changing this value, highlighting will be done with animation 237 | */ 238 | open override var isHighlighted: Bool { 239 | get { 240 | return _highlighted 241 | } 242 | set { 243 | _highlighted = newValue 244 | updateTitleColor() 245 | // updateLineView() 246 | } 247 | } 248 | 249 | /// A Boolean value that determines whether the textfield is being edited or is selected. 250 | open var editingOrSelected: Bool { 251 | return super.isEditing || isSelected 252 | } 253 | 254 | /// A Boolean value that determines whether the receiver has an error message. 255 | open var hasErrorMessage: Bool { 256 | return errorMessage != nil && errorMessage != "" 257 | } 258 | 259 | fileprivate var _renderingInInterfaceBuilder: Bool = false 260 | 261 | /// The text content of the textfield 262 | @IBInspectable 263 | open override var text: String? { 264 | didSet { 265 | updateControl(false) 266 | } 267 | } 268 | 269 | /** 270 | The String to display when the input field is empty. 271 | The placeholder can also appear in the title label when both `title` `selectedTitle` and are `nil`. 272 | */ 273 | @IBInspectable 274 | open override var placeholder: String? { 275 | didSet { 276 | setNeedsDisplay() 277 | updatePlaceholder() 278 | updateTitleLabel() 279 | } 280 | } 281 | 282 | /// The String to display when the textfield is editing and the input is not empty. 283 | @IBInspectable open var selectedTitle: String? { 284 | didSet { 285 | updateControl() 286 | } 287 | } 288 | 289 | /// The String to display when the textfield is not editing and the input is not empty. 290 | @IBInspectable open var title: String? { 291 | didSet { 292 | updateControl() 293 | } 294 | } 295 | 296 | // Determines whether the field is selected. When selected, the title floats above the textbox. 297 | open override var isSelected: Bool { 298 | didSet { 299 | updateControl(true) 300 | } 301 | } 302 | 303 | // MARK: - Initializers 304 | 305 | /** 306 | Initializes the control 307 | - parameter frame the frame of the control 308 | */ 309 | public override init(frame: CGRect) { 310 | super.init(frame: frame) 311 | init_AMPFloatingTextField() 312 | } 313 | 314 | /** 315 | Intialzies the control by deserializing it 316 | - parameter coder the object to deserialize the control from 317 | */ 318 | public required init?(coder aDecoder: NSCoder) { 319 | super.init(coder: aDecoder) 320 | init_AMPFloatingTextField() 321 | } 322 | 323 | fileprivate final func init_AMPFloatingTextField() { 324 | borderStyle = .none 325 | createTitleLabel() 326 | createLineView() 327 | createErrorLabel() 328 | createTickLabel() 329 | layer.addSublayer(borderLayer) 330 | updateColors() 331 | addEditingChangedObserver() 332 | updateTextAligment() 333 | } 334 | 335 | fileprivate func addEditingChangedObserver() { 336 | self.addTarget(self, action: #selector(AMPFloatingTextField.editingChanged), for: .editingChanged) 337 | self.addTarget(self, action: #selector(AMPFloatingTextField.editingBegin), for: .editingDidBegin) 338 | self.addTarget(self, action: #selector(AMPFloatingTextField.editingEnd), for: .editingDidEnd) 339 | } 340 | 341 | open func editingBegin() { 342 | _titleVisible = true 343 | errorMessage = "" 344 | self.placeholder = "" 345 | self.rightView?.isHidden = true 346 | updateTitleLabel(true) 347 | updateBorder() 348 | updateBackground() 349 | } 350 | 351 | open func editingChanged() { 352 | updateControl(true) 353 | updateTitleLabel(true) 354 | } 355 | 356 | func editingEnd() { 357 | 358 | if let nonOpRules = rules { 359 | 360 | for rule in nonOpRules { 361 | let regEx = rule.regex 362 | let regTest = NSPredicate(format: "SELF MATCHES %@", regEx) 363 | let textResult = regTest.evaluate(with: self.text) 364 | if textResult == false { 365 | isTextValid = false 366 | self.cachedErrorMessage = rule.message 367 | break 368 | } else { 369 | isTextValid = true 370 | } 371 | } 372 | } else { 373 | self.isTextValid = true 374 | } 375 | 376 | if isImmediateValidation { 377 | updateControl(true) 378 | if isTextValid { 379 | self.rightView?.isHidden = false 380 | } 381 | } 382 | } 383 | 384 | // MARK: create components 385 | 386 | fileprivate func createTitleLabel() { 387 | let titleLabel = UILabel() 388 | titleLabel.autoresizingMask = [.flexibleWidth, .flexibleHeight] 389 | titleLabel.font = titleFont 390 | titleLabel.alpha = 0.0 391 | titleLabel.textColor = titleColor 392 | 393 | addSubview(titleLabel) 394 | self.titleLabel = titleLabel 395 | } 396 | 397 | fileprivate func createErrorLabel() { 398 | let titleLabel = UILabel() 399 | titleLabel.autoresizingMask = [.flexibleWidth, .flexibleHeight] 400 | titleLabel.font = titleFont 401 | titleLabel.alpha = 0.0 402 | titleLabel.textColor = titleColor 403 | addSubview(titleLabel) 404 | self.errorLabel = titleLabel 405 | } 406 | 407 | fileprivate func createLineView() { 408 | 409 | if lineView == nil { 410 | let lineView = UIView() 411 | lineView.isUserInteractionEnabled = false 412 | self.lineView = lineView 413 | configureDefaultLineHeight() 414 | } 415 | 416 | lineView.autoresizingMask = [.flexibleWidth, .flexibleTopMargin] 417 | addSubview(lineView) 418 | } 419 | 420 | func createTickLabel() { 421 | let tickLabel = UILabel.init(frame: CGRect(origin: .zero, size: CGSize(width: 15, height: 30))) 422 | tickLabel.textColor = UIColor.green 423 | tickLabel.font = UIFont.systemFont(ofSize: 12) 424 | tickLabel.text = "✓" 425 | self.rightView = tickLabel 426 | self.rightViewMode = .unlessEditing 427 | self.tickView = tickLabel 428 | } 429 | 430 | fileprivate func configureDefaultLineHeight() { 431 | let onePixel: CGFloat = 1.0 / UIScreen.main.scale 432 | lineHeight = 2.0 * onePixel 433 | } 434 | 435 | // MARK: Responder handling 436 | 437 | /** 438 | Attempt the control to become the first responder 439 | - returns: True when successfull becoming the first responder 440 | */ 441 | @discardableResult 442 | open override func becomeFirstResponder() -> Bool { 443 | let result = super.becomeFirstResponder() 444 | updateControl(true) 445 | return result 446 | } 447 | 448 | /** 449 | Attempt the control to resign being the first responder 450 | - returns: True when successfull resigning being the first responder 451 | */ 452 | @discardableResult 453 | open override func resignFirstResponder() -> Bool { 454 | let result = super.resignFirstResponder() 455 | if !hasText { 456 | self.placeholder = titleLabel.text 457 | _titleVisible = false 458 | } 459 | updateControl(true) 460 | return result 461 | } 462 | 463 | // MARK: - View updates 464 | 465 | fileprivate func updateControl(_ animated: Bool = false) { 466 | updateColors() 467 | updateBorder() 468 | updateTitleLabel(animated) 469 | updateErrorLabel(animated) 470 | } 471 | 472 | fileprivate func updateLineView() { 473 | if let lineView = lineView { 474 | lineView.frame = lineViewRectForBounds(bounds) 475 | } 476 | } 477 | 478 | // MARK: - Color updates 479 | 480 | /// Update the colors for the control. Override to customize colors. 481 | open func updateColors() { 482 | updateLineColor() 483 | updateTitleColor() 484 | updateTextColor() 485 | updateErrorLabelColor() 486 | updateBackground() 487 | } 488 | 489 | fileprivate func updateLineColor() { 490 | if hasText || !isFirstResponder { 491 | lineView.backgroundColor = .clear 492 | } else { 493 | lineView.backgroundColor = lineColor 494 | } 495 | } 496 | 497 | fileprivate func updateTitleColor() { 498 | if editingOrSelected || isHighlighted { 499 | titleLabel.textColor = selectedTitleColor 500 | } else { 501 | titleLabel.textColor = titleColor 502 | } 503 | } 504 | 505 | fileprivate func updateErrorLabelColor() { 506 | if hasErrorMessage { 507 | errorLabel.textColor = errorColor 508 | } 509 | } 510 | 511 | fileprivate func updateTextColor() { 512 | if hasErrorMessage { 513 | super.textColor = errorColor 514 | } else { 515 | super.textColor = cachedTextColor 516 | } 517 | } 518 | 519 | // MARK: - Title handling 520 | 521 | fileprivate func updateTitleLabel(_ animated: Bool = false) { 522 | 523 | var titleText: String? 524 | 525 | if editingOrSelected { 526 | titleText = selectedTitleOrTitlePlaceholder() 527 | if titleText == nil { 528 | titleText = titleOrPlaceholder() 529 | } 530 | } else { 531 | titleText = titleOrPlaceholder() 532 | } 533 | titleLabel.text = titleText 534 | titleLabel.font = titleFont 535 | 536 | updateTitleVisibility(animated) 537 | } 538 | 539 | fileprivate func updateErrorLabel(_ animated: Bool = false) { 540 | 541 | var titleText: String? 542 | if hasErrorMessage { 543 | titleText = errorMessage 544 | } 545 | errorLabel.text = titleText 546 | errorLabel.font = titleFont 547 | 548 | updateErrorVisibility(animated) 549 | } 550 | 551 | @discardableResult 552 | open func validate() -> Bool { 553 | 554 | if isTextValid { 555 | self.rightView?.isHidden = false 556 | } else { 557 | errorMessage = self.cachedErrorMessage 558 | } 559 | return isTextValid 560 | } 561 | 562 | fileprivate var _titleVisible: Bool = false 563 | 564 | /* 565 | * Set this value to make the title visible 566 | */ 567 | open func setTitleVisible( 568 | _ titleVisible: Bool, 569 | animated: Bool = false, 570 | animationCompletion: ((_ completed: Bool) -> Void)? = nil 571 | ) { 572 | if _titleVisible == titleVisible { 573 | return 574 | } 575 | _titleVisible = titleVisible 576 | updateTitleColor() 577 | updateTitleVisibility(animated, completion: animationCompletion) 578 | } 579 | 580 | /** 581 | Returns whether the title is being displayed on the control. 582 | - returns: True if the title is displayed on the control, false otherwise. 583 | */ 584 | open func isTitleVisible() -> Bool { 585 | return hasText || _titleVisible 586 | } 587 | 588 | open func isErrorVisible() -> Bool { 589 | return hasErrorMessage 590 | } 591 | 592 | fileprivate func updateTitleVisibility(_ animated: Bool = false, completion: ((_ completed: Bool) -> Void)? = nil) { 593 | let alpha: CGFloat = isTitleVisible() ? 1.0 : 0.0 594 | let frame: CGRect = titleLabelRectForBounds(bounds, editing: isTitleVisible()) 595 | let updateBlock = { () -> Void in 596 | self.titleLabel.alpha = alpha 597 | self.titleLabel.frame = frame 598 | } 599 | if animated { 600 | let animationOptions: UIViewAnimationOptions = .curveEaseOut 601 | let duration = isTitleVisible() ? titleFadeInDuration : titleFadeOutDuration 602 | UIView.animate(withDuration: duration, delay: 0, options: animationOptions, animations: { () -> Void in 603 | updateBlock() 604 | }, completion: completion) 605 | } else { 606 | updateBlock() 607 | completion?(true) 608 | } 609 | } 610 | 611 | fileprivate func updateErrorVisibility(_ animated: Bool = false, completion: ((_ completed: Bool) -> Void)? = nil) { 612 | let alpha: CGFloat = isErrorVisible() ? 1.0 : 0.0 613 | let frame: CGRect = errorLabelRectForBounds(bounds, editing: isTitleVisible()) 614 | let updateBlock = { () -> Void in 615 | self.errorLabel.alpha = alpha 616 | self.errorLabel.frame = frame 617 | } 618 | if animated { 619 | let animationOptions: UIViewAnimationOptions = .curveEaseOut 620 | let duration = isTitleVisible() ? titleFadeInDuration : titleFadeOutDuration 621 | UIView.animate(withDuration: duration, delay: 0, options: animationOptions, animations: { () -> Void in 622 | updateBlock() 623 | }, completion: completion) 624 | } else { 625 | updateBlock() 626 | completion?(true) 627 | } 628 | } 629 | 630 | // MARK: - UITextField text/placeholder positioning overrides 631 | 632 | /** 633 | Calculate the rectangle for the textfield when it is not being edited 634 | - parameter bounds: The current bounds of the field 635 | - returns: The rectangle that the textfield should render in 636 | */ 637 | open override func textRect(forBounds bounds: CGRect) -> CGRect { 638 | let superRect = super.textRect(forBounds: bounds) 639 | 640 | let rect = CGRect(x: superRect.origin.x, y: titleHeight(), width: superRect.size.width, height: superRect.size.height - (titleHeight() * 2) - lineHeight) 641 | return rect 642 | } 643 | 644 | /** 645 | Calculate the rectangle for the textfield when it is being edited 646 | - parameter bounds: The current bounds of the field 647 | - returns: The rectangle that the textfield should render in 648 | */ 649 | open override func editingRect(forBounds bounds: CGRect) -> CGRect { 650 | let superRect = super.editingRect(forBounds: bounds) 651 | let titleHeight = self.titleHeight() 652 | 653 | let rect = CGRect(x: superRect.origin.x, y: titleHeight, width: superRect.size.width, height: superRect.size.height - titleHeight * 2 - lineHeight 654 | ) 655 | return rect 656 | } 657 | 658 | /** 659 | Calculate the rectangle for the placeholder 660 | - parameter bounds: The current bounds of the placeholder 661 | - returns: The rectangle that the placeholder should render in 662 | */ 663 | open override func placeholderRect(forBounds bounds: CGRect) -> CGRect { 664 | let rect = CGRect(x: 0, y: titleHeight(), width: bounds.size.width, height: bounds.size.height - titleHeight() * 2 - lineHeight 665 | ) 666 | return rect 667 | } 668 | 669 | // MARK: - Positioning Overrides 670 | 671 | /** 672 | Calculate the bounds for the title label. Override to create a custom size title field. 673 | - parameter bounds: The current bounds of the title 674 | - parameter editing: True if the control is selected or highlighted 675 | - returns: The rectangle that the title label should render in 676 | */ 677 | open func titleLabelRectForBounds(_ bounds: CGRect, editing: Bool) -> CGRect { 678 | if editing { 679 | return CGRect(x: 0, y: 0, width: bounds.size.width, height: titleHeight()) 680 | } 681 | return CGRect(x: 0, y: titleHeight(), width: bounds.size.width, height: titleHeight()) 682 | } 683 | 684 | open func errorLabelRectForBounds(_ bounds: CGRect, editing: Bool) -> CGRect { 685 | 686 | if editing { 687 | let height = bounds.size.height - titleHeight() + 2 688 | return CGRect(x: 0, y: height, width: bounds.size.width, height: titleHeight()) 689 | } 690 | 691 | let height = bounds.size.height - titleHeight() * 2 692 | 693 | return CGRect(x: 0, y: height, width: bounds.size.width, height: titleHeight()) 694 | } 695 | 696 | /** 697 | Calculate the bounds for the bottom line of the control. 698 | Override to create a custom size bottom line in the textbox. 699 | - parameter bounds: The current bounds of the line 700 | - parameter editing: True if the control is selected or highlighted 701 | - returns: The rectangle that the line bar should render in 702 | */ 703 | open func lineViewRectForBounds(_ bounds: CGRect) -> CGRect { 704 | 705 | let yPosition = bounds.size.height - titleHeight() 706 | return CGRect(x: 0, y: yPosition, width: bounds.size.width, height: lineHeight) 707 | } 708 | 709 | /** 710 | Calculate the height of the title label. 711 | -returns: the calculated height of the title label. Override to size the title with a different height 712 | */ 713 | open func titleHeight() -> CGFloat { 714 | if let titleLabel = titleLabel, 715 | let font = titleLabel.font { 716 | return font.lineHeight 717 | } 718 | return 15.0 719 | } 720 | 721 | /** 722 | Calcualte the height of the textfield. 723 | -returns: the calculated height of the textfield. Override to size the textfield with a different height 724 | */ 725 | open func textHeight() -> CGFloat { 726 | return self.font!.lineHeight + 7.0 727 | } 728 | 729 | // MARK: - Layout 730 | 731 | /// Invoked when the interface builder renders the control 732 | open override func prepareForInterfaceBuilder() { 733 | if #available(iOS 8.0, *) { 734 | super.prepareForInterfaceBuilder() 735 | } 736 | 737 | borderStyle = .none 738 | 739 | isSelected = true 740 | _renderingInInterfaceBuilder = true 741 | updateControl(false) 742 | invalidateIntrinsicContentSize() 743 | } 744 | 745 | /// Invoked by layoutIfNeeded automatically 746 | open override func layoutSubviews() { 747 | super.layoutSubviews() 748 | 749 | titleLabel.frame = titleLabelRectForBounds(bounds, editing: isTitleVisible() || _renderingInInterfaceBuilder) 750 | 751 | errorLabel.frame = errorLabelRectForBounds(bounds, editing: isErrorVisible() || _renderingInInterfaceBuilder) 752 | 753 | // lineView.frame = lineViewRectForBounds(bounds, editing: editingOrSelected || _renderingInInterfaceBuilder) 754 | } 755 | 756 | /** 757 | Calculate the content size for auto layout 758 | 759 | - returns: the content size to be used for auto layout 760 | */ 761 | open override var intrinsicContentSize: CGSize { 762 | return CGSize(width: bounds.size.width, height: titleHeight() + textHeight()) 763 | } 764 | 765 | // MARK: - Helpers 766 | 767 | fileprivate func titleOrPlaceholder() -> String? { 768 | guard let title = title ?? placeholder else { 769 | return nil 770 | } 771 | return title 772 | } 773 | 774 | fileprivate func selectedTitleOrTitlePlaceholder() -> String? { 775 | guard let title = selectedTitle ?? title ?? placeholder else { 776 | return nil 777 | } 778 | return title 779 | } 780 | } 781 | -------------------------------------------------------------------------------- /Example/AMPFloatingTextField.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | B778375F3539FD8A3E99B78D /* Pods_AMPFloatingTextField_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82496C4DAF1DF79847D9114D /* Pods_AMPFloatingTextField_Example.framework */; }; 17 | FC1F930C70E84D072541F9FC /* Pods_AMPFloatingTextField_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15F2CA6AD856E274FC3E82E2 /* Pods_AMPFloatingTextField_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = AMPFloatingTextField; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 09D140569010D90E99171BF5 /* Pods-AMPFloatingTextField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMPFloatingTextField_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests.debug.xcconfig"; sourceTree = ""; }; 32 | 15F2CA6AD856E274FC3E82E2 /* Pods_AMPFloatingTextField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMPFloatingTextField_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 4C2905F9C5EBDEDC8F421BB1 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 34 | 607FACD01AFB9204008FA782 /* AMPFloatingTextField_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AMPFloatingTextField_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 38 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 39 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 40 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 41 | 607FACE51AFB9204008FA782 /* AMPFloatingTextField_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AMPFloatingTextField_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 44 | 7C3D8187023DEA19045AD567 /* Pods-AMPFloatingTextField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMPFloatingTextField_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example.release.xcconfig"; sourceTree = ""; }; 45 | 82496C4DAF1DF79847D9114D /* Pods_AMPFloatingTextField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMPFloatingTextField_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 947E74C6CF6FEAA5AD99793F /* AMPFloatingTextField.podspec */ = {isa = PBXFileReference; includeInIndex = 1; name = AMPFloatingTextField.podspec; path = ../AMPFloatingTextField.podspec; sourceTree = ""; }; 47 | D5A37FFEF482D562FDF40AAE /* Pods-AMPFloatingTextField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMPFloatingTextField_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests.release.xcconfig"; sourceTree = ""; }; 48 | D5ECD6BFD0D6FF282FEB9FD0 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; name = README.md; path = ../README.md; sourceTree = ""; }; 49 | E584BE31CCB3891E15512E1C /* Pods-AMPFloatingTextField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AMPFloatingTextField_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example.debug.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | B778375F3539FD8A3E99B78D /* Pods_AMPFloatingTextField_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | FC1F930C70E84D072541F9FC /* Pods_AMPFloatingTextField_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 AMPFloatingTextField */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | CFCF3B4DF7C5D2DE112F094B /* Pods */, 80 | E22DE053100A686E16984062 /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* AMPFloatingTextField_Example.app */, 88 | 607FACE51AFB9204008FA782 /* AMPFloatingTextField_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for AMPFloatingTextField */ = { 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 AMPFloatingTextField"; 104 | path = AMPFloatingTextField; 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 | 947E74C6CF6FEAA5AD99793F /* AMPFloatingTextField.podspec */, 136 | D5ECD6BFD0D6FF282FEB9FD0 /* README.md */, 137 | 4C2905F9C5EBDEDC8F421BB1 /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | CFCF3B4DF7C5D2DE112F094B /* Pods */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | E584BE31CCB3891E15512E1C /* Pods-AMPFloatingTextField_Example.debug.xcconfig */, 146 | 7C3D8187023DEA19045AD567 /* Pods-AMPFloatingTextField_Example.release.xcconfig */, 147 | 09D140569010D90E99171BF5 /* Pods-AMPFloatingTextField_Tests.debug.xcconfig */, 148 | D5A37FFEF482D562FDF40AAE /* Pods-AMPFloatingTextField_Tests.release.xcconfig */, 149 | ); 150 | name = Pods; 151 | sourceTree = ""; 152 | }; 153 | E22DE053100A686E16984062 /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 82496C4DAF1DF79847D9114D /* Pods_AMPFloatingTextField_Example.framework */, 157 | 15F2CA6AD856E274FC3E82E2 /* Pods_AMPFloatingTextField_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* AMPFloatingTextField_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMPFloatingTextField_Example" */; 168 | buildPhases = ( 169 | 14BAAE549557060CFC3BE239 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | B2234A5DB250216F9AD3118B /* [CP] Embed Pods Frameworks */, 174 | 1E529D675C764D068FF06429 /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = AMPFloatingTextField_Example; 181 | productName = AMPFloatingTextField; 182 | productReference = 607FACD01AFB9204008FA782 /* AMPFloatingTextField_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* AMPFloatingTextField_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMPFloatingTextField_Tests" */; 188 | buildPhases = ( 189 | 3D6C867A7DACA675AE09F792 /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | 303306BF59A14C9501543F9A /* [CP] Embed Pods Frameworks */, 194 | AC9ACE7BE00E94CD903DA061 /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = AMPFloatingTextField_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* AMPFloatingTextField_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0720; 213 | LastUpgradeCheck = 0820; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0820; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 0820; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AMPFloatingTextField" */; 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 /* AMPFloatingTextField_Example */, 241 | 607FACE41AFB9204008FA782 /* AMPFloatingTextField_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 | 14BAAE549557060CFC3BE239 /* [CP] Check Pods Manifest.lock */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 274 | "${PODS_ROOT}/Manifest.lock", 275 | ); 276 | name = "[CP] Check Pods Manifest.lock"; 277 | outputPaths = ( 278 | "$(DERIVED_FILE_DIR)/Pods-AMPFloatingTextField_Example-checkManifestLockResult.txt", 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | shellPath = /bin/sh; 282 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 283 | showEnvVarsInLog = 0; 284 | }; 285 | 1E529D675C764D068FF06429 /* [CP] Copy Pods Resources */ = { 286 | isa = PBXShellScriptBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | ); 290 | inputPaths = ( 291 | ); 292 | name = "[CP] Copy Pods Resources"; 293 | outputPaths = ( 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | shellPath = /bin/sh; 297 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example-resources.sh\"\n"; 298 | showEnvVarsInLog = 0; 299 | }; 300 | 303306BF59A14C9501543F9A /* [CP] Embed Pods Frameworks */ = { 301 | isa = PBXShellScriptBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | ); 305 | inputPaths = ( 306 | ); 307 | name = "[CP] Embed Pods Frameworks"; 308 | outputPaths = ( 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | shellPath = /bin/sh; 312 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests-frameworks.sh\"\n"; 313 | showEnvVarsInLog = 0; 314 | }; 315 | 3D6C867A7DACA675AE09F792 /* [CP] Check Pods Manifest.lock */ = { 316 | isa = PBXShellScriptBuildPhase; 317 | buildActionMask = 2147483647; 318 | files = ( 319 | ); 320 | inputPaths = ( 321 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 322 | "${PODS_ROOT}/Manifest.lock", 323 | ); 324 | name = "[CP] Check Pods Manifest.lock"; 325 | outputPaths = ( 326 | "$(DERIVED_FILE_DIR)/Pods-AMPFloatingTextField_Tests-checkManifestLockResult.txt", 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | shellPath = /bin/sh; 330 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 331 | showEnvVarsInLog = 0; 332 | }; 333 | AC9ACE7BE00E94CD903DA061 /* [CP] Copy Pods Resources */ = { 334 | isa = PBXShellScriptBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | ); 338 | inputPaths = ( 339 | ); 340 | name = "[CP] Copy Pods Resources"; 341 | outputPaths = ( 342 | ); 343 | runOnlyForDeploymentPostprocessing = 0; 344 | shellPath = /bin/sh; 345 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests-resources.sh\"\n"; 346 | showEnvVarsInLog = 0; 347 | }; 348 | B2234A5DB250216F9AD3118B /* [CP] Embed Pods Frameworks */ = { 349 | isa = PBXShellScriptBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | ); 353 | inputPaths = ( 354 | "${SRCROOT}/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example-frameworks.sh", 355 | "${BUILT_PRODUCTS_DIR}/AMPFloatingTextField/AMPFloatingTextField.framework", 356 | ); 357 | name = "[CP] Embed Pods Frameworks"; 358 | outputPaths = ( 359 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AMPFloatingTextField.framework", 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | shellPath = /bin/sh; 363 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example-frameworks.sh\"\n"; 364 | showEnvVarsInLog = 0; 365 | }; 366 | /* End PBXShellScriptBuildPhase section */ 367 | 368 | /* Begin PBXSourcesBuildPhase section */ 369 | 607FACCC1AFB9204008FA782 /* Sources */ = { 370 | isa = PBXSourcesBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 374 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | 607FACE11AFB9204008FA782 /* Sources */ = { 379 | isa = PBXSourcesBuildPhase; 380 | buildActionMask = 2147483647; 381 | files = ( 382 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 383 | ); 384 | runOnlyForDeploymentPostprocessing = 0; 385 | }; 386 | /* End PBXSourcesBuildPhase section */ 387 | 388 | /* Begin PBXTargetDependency section */ 389 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 390 | isa = PBXTargetDependency; 391 | target = 607FACCF1AFB9204008FA782 /* AMPFloatingTextField_Example */; 392 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 393 | }; 394 | /* End PBXTargetDependency section */ 395 | 396 | /* Begin PBXVariantGroup section */ 397 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 398 | isa = PBXVariantGroup; 399 | children = ( 400 | 607FACDA1AFB9204008FA782 /* Base */, 401 | ); 402 | name = Main.storyboard; 403 | sourceTree = ""; 404 | }; 405 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 406 | isa = PBXVariantGroup; 407 | children = ( 408 | 607FACDF1AFB9204008FA782 /* Base */, 409 | ); 410 | name = LaunchScreen.xib; 411 | sourceTree = ""; 412 | }; 413 | /* End PBXVariantGroup section */ 414 | 415 | /* Begin XCBuildConfiguration section */ 416 | 607FACED1AFB9204008FA782 /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | ALWAYS_SEARCH_USER_PATHS = NO; 420 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 421 | CLANG_CXX_LIBRARY = "libc++"; 422 | CLANG_ENABLE_MODULES = YES; 423 | CLANG_ENABLE_OBJC_ARC = YES; 424 | CLANG_WARN_BOOL_CONVERSION = YES; 425 | CLANG_WARN_CONSTANT_CONVERSION = YES; 426 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 427 | CLANG_WARN_EMPTY_BODY = YES; 428 | CLANG_WARN_ENUM_CONVERSION = YES; 429 | CLANG_WARN_INFINITE_RECURSION = YES; 430 | CLANG_WARN_INT_CONVERSION = YES; 431 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 432 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 433 | CLANG_WARN_UNREACHABLE_CODE = YES; 434 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 435 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 436 | COPY_PHASE_STRIP = NO; 437 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 438 | ENABLE_STRICT_OBJC_MSGSEND = YES; 439 | ENABLE_TESTABILITY = YES; 440 | GCC_C_LANGUAGE_STANDARD = gnu99; 441 | GCC_DYNAMIC_NO_PIC = NO; 442 | GCC_NO_COMMON_BLOCKS = YES; 443 | GCC_OPTIMIZATION_LEVEL = 0; 444 | GCC_PREPROCESSOR_DEFINITIONS = ( 445 | "DEBUG=1", 446 | "$(inherited)", 447 | ); 448 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 451 | GCC_WARN_UNDECLARED_SELECTOR = YES; 452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 453 | GCC_WARN_UNUSED_FUNCTION = YES; 454 | GCC_WARN_UNUSED_VARIABLE = YES; 455 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 456 | MTL_ENABLE_DEBUG_INFO = YES; 457 | ONLY_ACTIVE_ARCH = YES; 458 | SDKROOT = iphoneos; 459 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 460 | }; 461 | name = Debug; 462 | }; 463 | 607FACEE1AFB9204008FA782 /* Release */ = { 464 | isa = XCBuildConfiguration; 465 | buildSettings = { 466 | ALWAYS_SEARCH_USER_PATHS = NO; 467 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 468 | CLANG_CXX_LIBRARY = "libc++"; 469 | CLANG_ENABLE_MODULES = YES; 470 | CLANG_ENABLE_OBJC_ARC = YES; 471 | CLANG_WARN_BOOL_CONVERSION = YES; 472 | CLANG_WARN_CONSTANT_CONVERSION = YES; 473 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 474 | CLANG_WARN_EMPTY_BODY = YES; 475 | CLANG_WARN_ENUM_CONVERSION = YES; 476 | CLANG_WARN_INFINITE_RECURSION = YES; 477 | CLANG_WARN_INT_CONVERSION = YES; 478 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 479 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 480 | CLANG_WARN_UNREACHABLE_CODE = YES; 481 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 482 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 483 | COPY_PHASE_STRIP = NO; 484 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 485 | ENABLE_NS_ASSERTIONS = NO; 486 | ENABLE_STRICT_OBJC_MSGSEND = YES; 487 | GCC_C_LANGUAGE_STANDARD = gnu99; 488 | GCC_NO_COMMON_BLOCKS = YES; 489 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 490 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 491 | GCC_WARN_UNDECLARED_SELECTOR = YES; 492 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 493 | GCC_WARN_UNUSED_FUNCTION = YES; 494 | GCC_WARN_UNUSED_VARIABLE = YES; 495 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 496 | MTL_ENABLE_DEBUG_INFO = NO; 497 | SDKROOT = iphoneos; 498 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 499 | VALIDATE_PRODUCT = YES; 500 | }; 501 | name = Release; 502 | }; 503 | 607FACF01AFB9204008FA782 /* Debug */ = { 504 | isa = XCBuildConfiguration; 505 | baseConfigurationReference = E584BE31CCB3891E15512E1C /* Pods-AMPFloatingTextField_Example.debug.xcconfig */; 506 | buildSettings = { 507 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 508 | INFOPLIST_FILE = AMPFloatingTextField/Info.plist; 509 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 510 | MODULE_NAME = ExampleApp; 511 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | SWIFT_VERSION = 3.0; 514 | }; 515 | name = Debug; 516 | }; 517 | 607FACF11AFB9204008FA782 /* Release */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = 7C3D8187023DEA19045AD567 /* Pods-AMPFloatingTextField_Example.release.xcconfig */; 520 | buildSettings = { 521 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 522 | INFOPLIST_FILE = AMPFloatingTextField/Info.plist; 523 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 524 | MODULE_NAME = ExampleApp; 525 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 526 | PRODUCT_NAME = "$(TARGET_NAME)"; 527 | SWIFT_VERSION = 3.0; 528 | }; 529 | name = Release; 530 | }; 531 | 607FACF31AFB9204008FA782 /* Debug */ = { 532 | isa = XCBuildConfiguration; 533 | baseConfigurationReference = 09D140569010D90E99171BF5 /* Pods-AMPFloatingTextField_Tests.debug.xcconfig */; 534 | buildSettings = { 535 | FRAMEWORK_SEARCH_PATHS = ( 536 | "$(SDKROOT)/Developer/Library/Frameworks", 537 | "$(inherited)", 538 | ); 539 | GCC_PREPROCESSOR_DEFINITIONS = ( 540 | "DEBUG=1", 541 | "$(inherited)", 542 | ); 543 | INFOPLIST_FILE = Tests/Info.plist; 544 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 545 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 546 | PRODUCT_NAME = "$(TARGET_NAME)"; 547 | SWIFT_VERSION = 3.0; 548 | }; 549 | name = Debug; 550 | }; 551 | 607FACF41AFB9204008FA782 /* Release */ = { 552 | isa = XCBuildConfiguration; 553 | baseConfigurationReference = D5A37FFEF482D562FDF40AAE /* Pods-AMPFloatingTextField_Tests.release.xcconfig */; 554 | buildSettings = { 555 | FRAMEWORK_SEARCH_PATHS = ( 556 | "$(SDKROOT)/Developer/Library/Frameworks", 557 | "$(inherited)", 558 | ); 559 | INFOPLIST_FILE = Tests/Info.plist; 560 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 561 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 562 | PRODUCT_NAME = "$(TARGET_NAME)"; 563 | SWIFT_VERSION = 3.0; 564 | }; 565 | name = Release; 566 | }; 567 | /* End XCBuildConfiguration section */ 568 | 569 | /* Begin XCConfigurationList section */ 570 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AMPFloatingTextField" */ = { 571 | isa = XCConfigurationList; 572 | buildConfigurations = ( 573 | 607FACED1AFB9204008FA782 /* Debug */, 574 | 607FACEE1AFB9204008FA782 /* Release */, 575 | ); 576 | defaultConfigurationIsVisible = 0; 577 | defaultConfigurationName = Release; 578 | }; 579 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMPFloatingTextField_Example" */ = { 580 | isa = XCConfigurationList; 581 | buildConfigurations = ( 582 | 607FACF01AFB9204008FA782 /* Debug */, 583 | 607FACF11AFB9204008FA782 /* Release */, 584 | ); 585 | defaultConfigurationIsVisible = 0; 586 | defaultConfigurationName = Release; 587 | }; 588 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AMPFloatingTextField_Tests" */ = { 589 | isa = XCConfigurationList; 590 | buildConfigurations = ( 591 | 607FACF31AFB9204008FA782 /* Debug */, 592 | 607FACF41AFB9204008FA782 /* Release */, 593 | ); 594 | defaultConfigurationIsVisible = 0; 595 | defaultConfigurationName = Release; 596 | }; 597 | /* End XCConfigurationList section */ 598 | }; 599 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 600 | } 601 | -------------------------------------------------------------------------------- /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 | 04B7EDF97FD1DE6B3A4C874FD26E7E91 /* Pods-AMPFloatingTextField_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 136BC510E1EC11AFB875B8F9F58BA370 /* Pods-AMPFloatingTextField_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 089766CDF1B57A3F57407355FA4A887B /* Pods-AMPFloatingTextField_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1B6DB16B6F86E6DEF340E52BF4A372AE /* Pods-AMPFloatingTextField_Tests-dummy.m */; }; 12 | 443CEB4142FBB895C61FB1F690FC05D0 /* Pods-AMPFloatingTextField_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 46519142FE85971DF967853D98FC12CA /* Pods-AMPFloatingTextField_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 60CD43878300846FFED36CAFEDB6FC31 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 14 | 7D386A8330E40787C58E2B83C1A17AF2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 15 | 87F41E8F93EEEAB1AED5616C0B46D105 /* Pods-AMPFloatingTextField_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B0A9D70F4294004BBE2362121AAC9E2D /* Pods-AMPFloatingTextField_Example-dummy.m */; }; 16 | A4930FA008EF6ADC46A87CBDB19B813F /* UITextFieldExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80EBA23AA93133E85AC877A4AD7E2D71 /* UITextFieldExtension.swift */; }; 17 | C655DBAE147926C84C1201315D5BBF60 /* AMPFloatingTextField-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3AAD9351DED63B710A1438F403FB91CC /* AMPFloatingTextField-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | CADB0F3202321C22F52755286DE85E86 /* AMPFloatingTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B6CAD2D4AAC8BC9BA6F1BA3A2158C0D /* AMPFloatingTextField.swift */; }; 19 | CB9FD316667EF6E251C0DC4BFDCC3F10 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 20 | FB6970B962F9FA1A1AA3D4A9C1607971 /* AMPFloatingTextField-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AFB3BB42BE7D1ECAD5C965FE8F00F73E /* AMPFloatingTextField-dummy.m */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | A46644FACF07B8A4B1F710586A275328 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = E752C47DC2FE0A334F5AC38C3A123B89; 29 | remoteInfo = AMPFloatingTextField; 30 | }; 31 | /* End PBXContainerItemProxy section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | 09C97DEA394A88A78398AA8251168FE8 /* Pods-AMPFloatingTextField_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AMPFloatingTextField_Example-acknowledgements.markdown"; sourceTree = ""; }; 35 | 0B6CAD2D4AAC8BC9BA6F1BA3A2158C0D /* AMPFloatingTextField.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AMPFloatingTextField.swift; path = AMPFloatingTextField/Classes/AMPFloatingTextField.swift; sourceTree = ""; }; 36 | 136BC510E1EC11AFB875B8F9F58BA370 /* Pods-AMPFloatingTextField_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AMPFloatingTextField_Tests-umbrella.h"; sourceTree = ""; }; 37 | 17D5BF1D1A439035F5E9376FC76B3E89 /* AMPFloatingTextField-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AMPFloatingTextField-prefix.pch"; sourceTree = ""; }; 38 | 1B6DB16B6F86E6DEF340E52BF4A372AE /* Pods-AMPFloatingTextField_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AMPFloatingTextField_Tests-dummy.m"; sourceTree = ""; }; 39 | 22C6B1FCC789E1AE563BDE839304385C /* Pods-AMPFloatingTextField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMPFloatingTextField_Example.release.xcconfig"; sourceTree = ""; }; 40 | 2CCFD532E59F5506D5876178BA5B5DBC /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 41 | 2DE649E0778F9C6EE9B5B46ADF7FFD9A /* AMPFloatingTextField.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AMPFloatingTextField.xcconfig; sourceTree = ""; }; 42 | 336B9D91261FEDF6FB3CC74431BA2A9F /* Pods-AMPFloatingTextField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMPFloatingTextField_Tests.release.xcconfig"; sourceTree = ""; }; 43 | 3AAD9351DED63B710A1438F403FB91CC /* AMPFloatingTextField-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AMPFloatingTextField-umbrella.h"; sourceTree = ""; }; 44 | 3FEC0E415145007955488A7EE05B408E /* Pods-AMPFloatingTextField_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AMPFloatingTextField_Tests-acknowledgements.plist"; sourceTree = ""; }; 45 | 46519142FE85971DF967853D98FC12CA /* Pods-AMPFloatingTextField_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AMPFloatingTextField_Example-umbrella.h"; sourceTree = ""; }; 46 | 4A6F339152506FBBA919856C9B183566 /* Pods_AMPFloatingTextField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMPFloatingTextField_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 539EAEE6C96B08C85D041185940F972D /* Pods-AMPFloatingTextField_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-AMPFloatingTextField_Tests.modulemap"; sourceTree = ""; }; 48 | 61F1E565C7FAAB65E06458C52948B3FE /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | 735A1CEC9B859D58BE30C5557DE04731 /* Pods-AMPFloatingTextField_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMPFloatingTextField_Example-frameworks.sh"; sourceTree = ""; }; 51 | 73CEA6DF71F665623766F326829A7C54 /* Pods-AMPFloatingTextField_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AMPFloatingTextField_Tests-acknowledgements.markdown"; sourceTree = ""; }; 52 | 740063F53118066C79943048CC5DF49C /* Pods-AMPFloatingTextField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMPFloatingTextField_Tests.debug.xcconfig"; sourceTree = ""; }; 53 | 80EBA23AA93133E85AC877A4AD7E2D71 /* UITextFieldExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = UITextFieldExtension.swift; path = AMPFloatingTextField/Classes/UITextFieldExtension.swift; sourceTree = ""; }; 54 | 8695CD7D88D3C9F5406384E7A2BA0381 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 8B7139D3B6008A7E1E89D9BE7955B49C /* Pods-AMPFloatingTextField_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMPFloatingTextField_Example-resources.sh"; sourceTree = ""; }; 56 | 9048D593C549D1C62B2A40AF3CBE54C3 /* Pods-AMPFloatingTextField_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-AMPFloatingTextField_Example.modulemap"; sourceTree = ""; }; 57 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 58 | 9529CF7F36B5016E41927205F0B37759 /* Pods_AMPFloatingTextField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AMPFloatingTextField_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | A773770E7B726ECBC43FB660364D1D62 /* Pods-AMPFloatingTextField_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AMPFloatingTextField_Example-acknowledgements.plist"; sourceTree = ""; }; 60 | AEBCC902F5A7A753AED4FB222BA74AC8 /* Pods-AMPFloatingTextField_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMPFloatingTextField_Tests-resources.sh"; sourceTree = ""; }; 61 | AFB3BB42BE7D1ECAD5C965FE8F00F73E /* AMPFloatingTextField-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AMPFloatingTextField-dummy.m"; sourceTree = ""; }; 62 | B0A9D70F4294004BBE2362121AAC9E2D /* Pods-AMPFloatingTextField_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AMPFloatingTextField_Example-dummy.m"; sourceTree = ""; }; 63 | BEC8A9319E3005089CDE6DCABD32FC6E /* AMPFloatingTextField.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AMPFloatingTextField.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | C90A6BD59765ED4C6135B9B618019A3D /* AMPFloatingTextField.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = AMPFloatingTextField.modulemap; sourceTree = ""; }; 65 | EDF4FED4BA4836550161A430C988429F /* Pods-AMPFloatingTextField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AMPFloatingTextField_Example.debug.xcconfig"; sourceTree = ""; }; 66 | FC4C064D253D2BF1B96C046366BA7694 /* Pods-AMPFloatingTextField_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AMPFloatingTextField_Tests-frameworks.sh"; sourceTree = ""; }; 67 | /* End PBXFileReference section */ 68 | 69 | /* Begin PBXFrameworksBuildPhase section */ 70 | 1B260C4C349B0808898DFAFDE323BA85 /* Frameworks */ = { 71 | isa = PBXFrameworksBuildPhase; 72 | buildActionMask = 2147483647; 73 | files = ( 74 | 60CD43878300846FFED36CAFEDB6FC31 /* Foundation.framework in Frameworks */, 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | DF387D30B1E5099BE8F62D149964F7AE /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | CB9FD316667EF6E251C0DC4BFDCC3F10 /* Foundation.framework in Frameworks */, 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | FA867203E8EC356052CFAC7C97281AD0 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | 7D386A8330E40787C58E2B83C1A17AF2 /* Foundation.framework in Frameworks */, 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | /* End PBXFrameworksBuildPhase section */ 95 | 96 | /* Begin PBXGroup section */ 97 | 3A1C399ED760F3DEA0495E0531073AB0 /* Support Files */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | C90A6BD59765ED4C6135B9B618019A3D /* AMPFloatingTextField.modulemap */, 101 | 2DE649E0778F9C6EE9B5B46ADF7FFD9A /* AMPFloatingTextField.xcconfig */, 102 | AFB3BB42BE7D1ECAD5C965FE8F00F73E /* AMPFloatingTextField-dummy.m */, 103 | 17D5BF1D1A439035F5E9376FC76B3E89 /* AMPFloatingTextField-prefix.pch */, 104 | 3AAD9351DED63B710A1438F403FB91CC /* AMPFloatingTextField-umbrella.h */, 105 | 2CCFD532E59F5506D5876178BA5B5DBC /* Info.plist */, 106 | ); 107 | name = "Support Files"; 108 | path = "Example/Pods/Target Support Files/AMPFloatingTextField"; 109 | sourceTree = ""; 110 | }; 111 | 655A7CAFAF521E7081A138324E184369 /* Pods-AMPFloatingTextField_Tests */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 61F1E565C7FAAB65E06458C52948B3FE /* Info.plist */, 115 | 539EAEE6C96B08C85D041185940F972D /* Pods-AMPFloatingTextField_Tests.modulemap */, 116 | 73CEA6DF71F665623766F326829A7C54 /* Pods-AMPFloatingTextField_Tests-acknowledgements.markdown */, 117 | 3FEC0E415145007955488A7EE05B408E /* Pods-AMPFloatingTextField_Tests-acknowledgements.plist */, 118 | 1B6DB16B6F86E6DEF340E52BF4A372AE /* Pods-AMPFloatingTextField_Tests-dummy.m */, 119 | FC4C064D253D2BF1B96C046366BA7694 /* Pods-AMPFloatingTextField_Tests-frameworks.sh */, 120 | AEBCC902F5A7A753AED4FB222BA74AC8 /* Pods-AMPFloatingTextField_Tests-resources.sh */, 121 | 136BC510E1EC11AFB875B8F9F58BA370 /* Pods-AMPFloatingTextField_Tests-umbrella.h */, 122 | 740063F53118066C79943048CC5DF49C /* Pods-AMPFloatingTextField_Tests.debug.xcconfig */, 123 | 336B9D91261FEDF6FB3CC74431BA2A9F /* Pods-AMPFloatingTextField_Tests.release.xcconfig */, 124 | ); 125 | name = "Pods-AMPFloatingTextField_Tests"; 126 | path = "Target Support Files/Pods-AMPFloatingTextField_Tests"; 127 | sourceTree = ""; 128 | }; 129 | 7DB346D0F39D3F0E887471402A8071AB = { 130 | isa = PBXGroup; 131 | children = ( 132 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 133 | 9925EC9B34109F44FE79A6890959B020 /* Development Pods */, 134 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 135 | B97C8E037DDDEE0590B9876C7CB7506E /* Products */, 136 | 888EDB79D8A1DADC5FA8D153D46F614B /* Targets Support Files */, 137 | ); 138 | sourceTree = ""; 139 | }; 140 | 813E2F54AA821CD022CCCD29B682F7EC /* AMPFloatingTextField */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 0B6CAD2D4AAC8BC9BA6F1BA3A2158C0D /* AMPFloatingTextField.swift */, 144 | 80EBA23AA93133E85AC877A4AD7E2D71 /* UITextFieldExtension.swift */, 145 | 3A1C399ED760F3DEA0495E0531073AB0 /* Support Files */, 146 | ); 147 | name = AMPFloatingTextField; 148 | path = ../..; 149 | sourceTree = ""; 150 | }; 151 | 888EDB79D8A1DADC5FA8D153D46F614B /* Targets Support Files */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 893B74ED178354C30817AFB353AA0B30 /* Pods-AMPFloatingTextField_Example */, 155 | 655A7CAFAF521E7081A138324E184369 /* Pods-AMPFloatingTextField_Tests */, 156 | ); 157 | name = "Targets Support Files"; 158 | sourceTree = ""; 159 | }; 160 | 893B74ED178354C30817AFB353AA0B30 /* Pods-AMPFloatingTextField_Example */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 8695CD7D88D3C9F5406384E7A2BA0381 /* Info.plist */, 164 | 9048D593C549D1C62B2A40AF3CBE54C3 /* Pods-AMPFloatingTextField_Example.modulemap */, 165 | 09C97DEA394A88A78398AA8251168FE8 /* Pods-AMPFloatingTextField_Example-acknowledgements.markdown */, 166 | A773770E7B726ECBC43FB660364D1D62 /* Pods-AMPFloatingTextField_Example-acknowledgements.plist */, 167 | B0A9D70F4294004BBE2362121AAC9E2D /* Pods-AMPFloatingTextField_Example-dummy.m */, 168 | 735A1CEC9B859D58BE30C5557DE04731 /* Pods-AMPFloatingTextField_Example-frameworks.sh */, 169 | 8B7139D3B6008A7E1E89D9BE7955B49C /* Pods-AMPFloatingTextField_Example-resources.sh */, 170 | 46519142FE85971DF967853D98FC12CA /* Pods-AMPFloatingTextField_Example-umbrella.h */, 171 | EDF4FED4BA4836550161A430C988429F /* Pods-AMPFloatingTextField_Example.debug.xcconfig */, 172 | 22C6B1FCC789E1AE563BDE839304385C /* Pods-AMPFloatingTextField_Example.release.xcconfig */, 173 | ); 174 | name = "Pods-AMPFloatingTextField_Example"; 175 | path = "Target Support Files/Pods-AMPFloatingTextField_Example"; 176 | sourceTree = ""; 177 | }; 178 | 9925EC9B34109F44FE79A6890959B020 /* Development Pods */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 813E2F54AA821CD022CCCD29B682F7EC /* AMPFloatingTextField */, 182 | ); 183 | name = "Development Pods"; 184 | sourceTree = ""; 185 | }; 186 | B97C8E037DDDEE0590B9876C7CB7506E /* Products */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | BEC8A9319E3005089CDE6DCABD32FC6E /* AMPFloatingTextField.framework */, 190 | 9529CF7F36B5016E41927205F0B37759 /* Pods_AMPFloatingTextField_Example.framework */, 191 | 4A6F339152506FBBA919856C9B183566 /* Pods_AMPFloatingTextField_Tests.framework */, 192 | ); 193 | name = Products; 194 | sourceTree = ""; 195 | }; 196 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 200 | ); 201 | name = Frameworks; 202 | sourceTree = ""; 203 | }; 204 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 208 | ); 209 | name = iOS; 210 | sourceTree = ""; 211 | }; 212 | /* End PBXGroup section */ 213 | 214 | /* Begin PBXHeadersBuildPhase section */ 215 | 4117306AFED7C522AA4BDF15CDAC409E /* Headers */ = { 216 | isa = PBXHeadersBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | C655DBAE147926C84C1201315D5BBF60 /* AMPFloatingTextField-umbrella.h in Headers */, 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | }; 223 | 4997374A566E1E770D50862EC39EAA39 /* Headers */ = { 224 | isa = PBXHeadersBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 04B7EDF97FD1DE6B3A4C874FD26E7E91 /* Pods-AMPFloatingTextField_Tests-umbrella.h in Headers */, 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | }; 231 | 61512373AA12D7CFE61A828316067D5A /* Headers */ = { 232 | isa = PBXHeadersBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | 443CEB4142FBB895C61FB1F690FC05D0 /* Pods-AMPFloatingTextField_Example-umbrella.h in Headers */, 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | /* End PBXHeadersBuildPhase section */ 240 | 241 | /* Begin PBXNativeTarget section */ 242 | 77A5D20F8A91182E8D4C6F0BE5F4095E /* Pods-AMPFloatingTextField_Example */ = { 243 | isa = PBXNativeTarget; 244 | buildConfigurationList = 36C07B427C66C9A64FDD156E3A28F652 /* Build configuration list for PBXNativeTarget "Pods-AMPFloatingTextField_Example" */; 245 | buildPhases = ( 246 | 5404B7A33577A9B8510F317E60133F8D /* Sources */, 247 | DF387D30B1E5099BE8F62D149964F7AE /* Frameworks */, 248 | 61512373AA12D7CFE61A828316067D5A /* Headers */, 249 | ); 250 | buildRules = ( 251 | ); 252 | dependencies = ( 253 | CB933D3DB5836C45936C6FA7B6665AC3 /* PBXTargetDependency */, 254 | ); 255 | name = "Pods-AMPFloatingTextField_Example"; 256 | productName = "Pods-AMPFloatingTextField_Example"; 257 | productReference = 9529CF7F36B5016E41927205F0B37759 /* Pods_AMPFloatingTextField_Example.framework */; 258 | productType = "com.apple.product-type.framework"; 259 | }; 260 | BD38BE980C883E62B8D65E358F610658 /* Pods-AMPFloatingTextField_Tests */ = { 261 | isa = PBXNativeTarget; 262 | buildConfigurationList = C275E2BACB067BA7C8B985A494E9B842 /* Build configuration list for PBXNativeTarget "Pods-AMPFloatingTextField_Tests" */; 263 | buildPhases = ( 264 | 98CDBD1744BB875F432AC79B9CAF79CA /* Sources */, 265 | 1B260C4C349B0808898DFAFDE323BA85 /* Frameworks */, 266 | 4997374A566E1E770D50862EC39EAA39 /* Headers */, 267 | ); 268 | buildRules = ( 269 | ); 270 | dependencies = ( 271 | ); 272 | name = "Pods-AMPFloatingTextField_Tests"; 273 | productName = "Pods-AMPFloatingTextField_Tests"; 274 | productReference = 4A6F339152506FBBA919856C9B183566 /* Pods_AMPFloatingTextField_Tests.framework */; 275 | productType = "com.apple.product-type.framework"; 276 | }; 277 | E752C47DC2FE0A334F5AC38C3A123B89 /* AMPFloatingTextField */ = { 278 | isa = PBXNativeTarget; 279 | buildConfigurationList = B3BFC16EE7F813C4FF89732E79013852 /* Build configuration list for PBXNativeTarget "AMPFloatingTextField" */; 280 | buildPhases = ( 281 | 31A2330202B3C70888776AF54AD2A84E /* Sources */, 282 | FA867203E8EC356052CFAC7C97281AD0 /* Frameworks */, 283 | 4117306AFED7C522AA4BDF15CDAC409E /* Headers */, 284 | ); 285 | buildRules = ( 286 | ); 287 | dependencies = ( 288 | ); 289 | name = AMPFloatingTextField; 290 | productName = AMPFloatingTextField; 291 | productReference = BEC8A9319E3005089CDE6DCABD32FC6E /* AMPFloatingTextField.framework */; 292 | productType = "com.apple.product-type.framework"; 293 | }; 294 | /* End PBXNativeTarget section */ 295 | 296 | /* Begin PBXProject section */ 297 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 298 | isa = PBXProject; 299 | attributes = { 300 | LastSwiftUpdateCheck = 0830; 301 | LastUpgradeCheck = 0700; 302 | }; 303 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 304 | compatibilityVersion = "Xcode 3.2"; 305 | developmentRegion = English; 306 | hasScannedForEncodings = 0; 307 | knownRegions = ( 308 | en, 309 | ); 310 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 311 | productRefGroup = B97C8E037DDDEE0590B9876C7CB7506E /* Products */; 312 | projectDirPath = ""; 313 | projectRoot = ""; 314 | targets = ( 315 | E752C47DC2FE0A334F5AC38C3A123B89 /* AMPFloatingTextField */, 316 | 77A5D20F8A91182E8D4C6F0BE5F4095E /* Pods-AMPFloatingTextField_Example */, 317 | BD38BE980C883E62B8D65E358F610658 /* Pods-AMPFloatingTextField_Tests */, 318 | ); 319 | }; 320 | /* End PBXProject section */ 321 | 322 | /* Begin PBXSourcesBuildPhase section */ 323 | 31A2330202B3C70888776AF54AD2A84E /* Sources */ = { 324 | isa = PBXSourcesBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | FB6970B962F9FA1A1AA3D4A9C1607971 /* AMPFloatingTextField-dummy.m in Sources */, 328 | CADB0F3202321C22F52755286DE85E86 /* AMPFloatingTextField.swift in Sources */, 329 | A4930FA008EF6ADC46A87CBDB19B813F /* UITextFieldExtension.swift in Sources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | 5404B7A33577A9B8510F317E60133F8D /* Sources */ = { 334 | isa = PBXSourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | 87F41E8F93EEEAB1AED5616C0B46D105 /* Pods-AMPFloatingTextField_Example-dummy.m in Sources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | 98CDBD1744BB875F432AC79B9CAF79CA /* Sources */ = { 342 | isa = PBXSourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | 089766CDF1B57A3F57407355FA4A887B /* Pods-AMPFloatingTextField_Tests-dummy.m in Sources */, 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | /* End PBXSourcesBuildPhase section */ 350 | 351 | /* Begin PBXTargetDependency section */ 352 | CB933D3DB5836C45936C6FA7B6665AC3 /* PBXTargetDependency */ = { 353 | isa = PBXTargetDependency; 354 | name = AMPFloatingTextField; 355 | target = E752C47DC2FE0A334F5AC38C3A123B89 /* AMPFloatingTextField */; 356 | targetProxy = A46644FACF07B8A4B1F710586A275328 /* PBXContainerItemProxy */; 357 | }; 358 | /* End PBXTargetDependency section */ 359 | 360 | /* Begin XCBuildConfiguration section */ 361 | 06E5DE0DA13B446A576B31D99E7A944C /* Release */ = { 362 | isa = XCBuildConfiguration; 363 | baseConfigurationReference = 336B9D91261FEDF6FB3CC74431BA2A9F /* Pods-AMPFloatingTextField_Tests.release.xcconfig */; 364 | buildSettings = { 365 | CODE_SIGN_IDENTITY = ""; 366 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 367 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 368 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 369 | CURRENT_PROJECT_VERSION = 1; 370 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 371 | DEFINES_MODULE = YES; 372 | DYLIB_COMPATIBILITY_VERSION = 1; 373 | DYLIB_CURRENT_VERSION = 1; 374 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 375 | ENABLE_STRICT_OBJC_MSGSEND = YES; 376 | GCC_NO_COMMON_BLOCKS = YES; 377 | INFOPLIST_FILE = "Target Support Files/Pods-AMPFloatingTextField_Tests/Info.plist"; 378 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 380 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 381 | MACH_O_TYPE = staticlib; 382 | MODULEMAP_FILE = "Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests.modulemap"; 383 | MTL_ENABLE_DEBUG_INFO = NO; 384 | OTHER_LDFLAGS = ""; 385 | OTHER_LIBTOOLFLAGS = ""; 386 | PODS_ROOT = "$(SRCROOT)"; 387 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 388 | PRODUCT_NAME = Pods_AMPFloatingTextField_Tests; 389 | SDKROOT = iphoneos; 390 | SKIP_INSTALL = YES; 391 | TARGETED_DEVICE_FAMILY = "1,2"; 392 | VERSIONING_SYSTEM = "apple-generic"; 393 | VERSION_INFO_PREFIX = ""; 394 | }; 395 | name = Release; 396 | }; 397 | 28D65A95F81D53FC0D2640C17CE7FCCF /* Debug */ = { 398 | isa = XCBuildConfiguration; 399 | baseConfigurationReference = 2DE649E0778F9C6EE9B5B46ADF7FFD9A /* AMPFloatingTextField.xcconfig */; 400 | buildSettings = { 401 | CODE_SIGN_IDENTITY = ""; 402 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 403 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 404 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 405 | CURRENT_PROJECT_VERSION = 1; 406 | DEBUG_INFORMATION_FORMAT = dwarf; 407 | DEFINES_MODULE = YES; 408 | DYLIB_COMPATIBILITY_VERSION = 1; 409 | DYLIB_CURRENT_VERSION = 1; 410 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 411 | ENABLE_STRICT_OBJC_MSGSEND = YES; 412 | GCC_NO_COMMON_BLOCKS = YES; 413 | GCC_PREFIX_HEADER = "Target Support Files/AMPFloatingTextField/AMPFloatingTextField-prefix.pch"; 414 | INFOPLIST_FILE = "Target Support Files/AMPFloatingTextField/Info.plist"; 415 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 416 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 418 | MODULEMAP_FILE = "Target Support Files/AMPFloatingTextField/AMPFloatingTextField.modulemap"; 419 | MTL_ENABLE_DEBUG_INFO = YES; 420 | PRODUCT_NAME = AMPFloatingTextField; 421 | SDKROOT = iphoneos; 422 | SKIP_INSTALL = YES; 423 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 424 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 425 | SWIFT_VERSION = 3.0; 426 | TARGETED_DEVICE_FAMILY = "1,2"; 427 | VERSIONING_SYSTEM = "apple-generic"; 428 | VERSION_INFO_PREFIX = ""; 429 | }; 430 | name = Debug; 431 | }; 432 | 4741E953B3DAEF3D8B8A4448B7BAE809 /* Release */ = { 433 | isa = XCBuildConfiguration; 434 | baseConfigurationReference = 22C6B1FCC789E1AE563BDE839304385C /* Pods-AMPFloatingTextField_Example.release.xcconfig */; 435 | buildSettings = { 436 | CODE_SIGN_IDENTITY = ""; 437 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 439 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 440 | CURRENT_PROJECT_VERSION = 1; 441 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 442 | DEFINES_MODULE = YES; 443 | DYLIB_COMPATIBILITY_VERSION = 1; 444 | DYLIB_CURRENT_VERSION = 1; 445 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 446 | ENABLE_STRICT_OBJC_MSGSEND = YES; 447 | GCC_NO_COMMON_BLOCKS = YES; 448 | INFOPLIST_FILE = "Target Support Files/Pods-AMPFloatingTextField_Example/Info.plist"; 449 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 450 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 452 | MACH_O_TYPE = staticlib; 453 | MODULEMAP_FILE = "Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example.modulemap"; 454 | MTL_ENABLE_DEBUG_INFO = NO; 455 | OTHER_LDFLAGS = ""; 456 | OTHER_LIBTOOLFLAGS = ""; 457 | PODS_ROOT = "$(SRCROOT)"; 458 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 459 | PRODUCT_NAME = Pods_AMPFloatingTextField_Example; 460 | SDKROOT = iphoneos; 461 | SKIP_INSTALL = YES; 462 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 463 | SWIFT_VERSION = 3.0; 464 | TARGETED_DEVICE_FAMILY = "1,2"; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | VERSION_INFO_PREFIX = ""; 467 | }; 468 | name = Release; 469 | }; 470 | 717E77604BFBB04BEAF56608A1CB2EDE /* Release */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | ALWAYS_SEARCH_USER_PATHS = NO; 474 | CLANG_ANALYZER_NONNULL = YES; 475 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 476 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 477 | CLANG_CXX_LIBRARY = "libc++"; 478 | CLANG_ENABLE_MODULES = YES; 479 | CLANG_ENABLE_OBJC_ARC = YES; 480 | CLANG_WARN_BOOL_CONVERSION = YES; 481 | CLANG_WARN_CONSTANT_CONVERSION = YES; 482 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 483 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 484 | CLANG_WARN_EMPTY_BODY = YES; 485 | CLANG_WARN_ENUM_CONVERSION = YES; 486 | CLANG_WARN_INFINITE_RECURSION = YES; 487 | CLANG_WARN_INT_CONVERSION = YES; 488 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 489 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 490 | CLANG_WARN_UNREACHABLE_CODE = YES; 491 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 492 | CODE_SIGNING_REQUIRED = NO; 493 | COPY_PHASE_STRIP = YES; 494 | ENABLE_NS_ASSERTIONS = NO; 495 | GCC_C_LANGUAGE_STANDARD = gnu99; 496 | GCC_PREPROCESSOR_DEFINITIONS = ( 497 | "POD_CONFIGURATION_RELEASE=1", 498 | "$(inherited)", 499 | ); 500 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 501 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 502 | GCC_WARN_UNDECLARED_SELECTOR = YES; 503 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 504 | GCC_WARN_UNUSED_FUNCTION = YES; 505 | GCC_WARN_UNUSED_VARIABLE = YES; 506 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 507 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 508 | STRIP_INSTALLED_PRODUCT = NO; 509 | SYMROOT = "${SRCROOT}/../build"; 510 | VALIDATE_PRODUCT = YES; 511 | }; 512 | name = Release; 513 | }; 514 | A09C569B5DF76FF1C6A749F84DBB0ED1 /* Debug */ = { 515 | isa = XCBuildConfiguration; 516 | baseConfigurationReference = 740063F53118066C79943048CC5DF49C /* Pods-AMPFloatingTextField_Tests.debug.xcconfig */; 517 | buildSettings = { 518 | CODE_SIGN_IDENTITY = ""; 519 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 520 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 521 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 522 | CURRENT_PROJECT_VERSION = 1; 523 | DEBUG_INFORMATION_FORMAT = dwarf; 524 | DEFINES_MODULE = YES; 525 | DYLIB_COMPATIBILITY_VERSION = 1; 526 | DYLIB_CURRENT_VERSION = 1; 527 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 528 | ENABLE_STRICT_OBJC_MSGSEND = YES; 529 | GCC_NO_COMMON_BLOCKS = YES; 530 | INFOPLIST_FILE = "Target Support Files/Pods-AMPFloatingTextField_Tests/Info.plist"; 531 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 532 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 533 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 534 | MACH_O_TYPE = staticlib; 535 | MODULEMAP_FILE = "Target Support Files/Pods-AMPFloatingTextField_Tests/Pods-AMPFloatingTextField_Tests.modulemap"; 536 | MTL_ENABLE_DEBUG_INFO = YES; 537 | OTHER_LDFLAGS = ""; 538 | OTHER_LIBTOOLFLAGS = ""; 539 | PODS_ROOT = "$(SRCROOT)"; 540 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 541 | PRODUCT_NAME = Pods_AMPFloatingTextField_Tests; 542 | SDKROOT = iphoneos; 543 | SKIP_INSTALL = YES; 544 | TARGETED_DEVICE_FAMILY = "1,2"; 545 | VERSIONING_SYSTEM = "apple-generic"; 546 | VERSION_INFO_PREFIX = ""; 547 | }; 548 | name = Debug; 549 | }; 550 | A6A03C9B1314C05BD3C2FBD3F65EDF83 /* Debug */ = { 551 | isa = XCBuildConfiguration; 552 | buildSettings = { 553 | ALWAYS_SEARCH_USER_PATHS = NO; 554 | CLANG_ANALYZER_NONNULL = YES; 555 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 556 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 557 | CLANG_CXX_LIBRARY = "libc++"; 558 | CLANG_ENABLE_MODULES = YES; 559 | CLANG_ENABLE_OBJC_ARC = YES; 560 | CLANG_WARN_BOOL_CONVERSION = YES; 561 | CLANG_WARN_CONSTANT_CONVERSION = YES; 562 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 563 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 564 | CLANG_WARN_EMPTY_BODY = YES; 565 | CLANG_WARN_ENUM_CONVERSION = YES; 566 | CLANG_WARN_INFINITE_RECURSION = YES; 567 | CLANG_WARN_INT_CONVERSION = YES; 568 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 569 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 570 | CLANG_WARN_UNREACHABLE_CODE = YES; 571 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 572 | CODE_SIGNING_REQUIRED = NO; 573 | COPY_PHASE_STRIP = NO; 574 | ENABLE_TESTABILITY = YES; 575 | GCC_C_LANGUAGE_STANDARD = gnu99; 576 | GCC_DYNAMIC_NO_PIC = NO; 577 | GCC_OPTIMIZATION_LEVEL = 0; 578 | GCC_PREPROCESSOR_DEFINITIONS = ( 579 | "POD_CONFIGURATION_DEBUG=1", 580 | "DEBUG=1", 581 | "$(inherited)", 582 | ); 583 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 584 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 585 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 586 | GCC_WARN_UNDECLARED_SELECTOR = YES; 587 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 588 | GCC_WARN_UNUSED_FUNCTION = YES; 589 | GCC_WARN_UNUSED_VARIABLE = YES; 590 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 591 | ONLY_ACTIVE_ARCH = YES; 592 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 593 | STRIP_INSTALLED_PRODUCT = NO; 594 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 595 | SYMROOT = "${SRCROOT}/../build"; 596 | }; 597 | name = Debug; 598 | }; 599 | AFEEECF6F21352378E5AC156BF40B956 /* Release */ = { 600 | isa = XCBuildConfiguration; 601 | baseConfigurationReference = 2DE649E0778F9C6EE9B5B46ADF7FFD9A /* AMPFloatingTextField.xcconfig */; 602 | buildSettings = { 603 | CODE_SIGN_IDENTITY = ""; 604 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 605 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 606 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 607 | CURRENT_PROJECT_VERSION = 1; 608 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 609 | DEFINES_MODULE = YES; 610 | DYLIB_COMPATIBILITY_VERSION = 1; 611 | DYLIB_CURRENT_VERSION = 1; 612 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 613 | ENABLE_STRICT_OBJC_MSGSEND = YES; 614 | GCC_NO_COMMON_BLOCKS = YES; 615 | GCC_PREFIX_HEADER = "Target Support Files/AMPFloatingTextField/AMPFloatingTextField-prefix.pch"; 616 | INFOPLIST_FILE = "Target Support Files/AMPFloatingTextField/Info.plist"; 617 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 618 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 619 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 620 | MODULEMAP_FILE = "Target Support Files/AMPFloatingTextField/AMPFloatingTextField.modulemap"; 621 | MTL_ENABLE_DEBUG_INFO = NO; 622 | PRODUCT_NAME = AMPFloatingTextField; 623 | SDKROOT = iphoneos; 624 | SKIP_INSTALL = YES; 625 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 626 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 627 | SWIFT_VERSION = 3.0; 628 | TARGETED_DEVICE_FAMILY = "1,2"; 629 | VERSIONING_SYSTEM = "apple-generic"; 630 | VERSION_INFO_PREFIX = ""; 631 | }; 632 | name = Release; 633 | }; 634 | DB22AEB0DD594A68517D49FD7E4D60F4 /* Debug */ = { 635 | isa = XCBuildConfiguration; 636 | baseConfigurationReference = EDF4FED4BA4836550161A430C988429F /* Pods-AMPFloatingTextField_Example.debug.xcconfig */; 637 | buildSettings = { 638 | CODE_SIGN_IDENTITY = ""; 639 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 640 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 641 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 642 | CURRENT_PROJECT_VERSION = 1; 643 | DEBUG_INFORMATION_FORMAT = dwarf; 644 | DEFINES_MODULE = YES; 645 | DYLIB_COMPATIBILITY_VERSION = 1; 646 | DYLIB_CURRENT_VERSION = 1; 647 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 648 | ENABLE_STRICT_OBJC_MSGSEND = YES; 649 | GCC_NO_COMMON_BLOCKS = YES; 650 | INFOPLIST_FILE = "Target Support Files/Pods-AMPFloatingTextField_Example/Info.plist"; 651 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 652 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 653 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 654 | MACH_O_TYPE = staticlib; 655 | MODULEMAP_FILE = "Target Support Files/Pods-AMPFloatingTextField_Example/Pods-AMPFloatingTextField_Example.modulemap"; 656 | MTL_ENABLE_DEBUG_INFO = YES; 657 | OTHER_LDFLAGS = ""; 658 | OTHER_LIBTOOLFLAGS = ""; 659 | PODS_ROOT = "$(SRCROOT)"; 660 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 661 | PRODUCT_NAME = Pods_AMPFloatingTextField_Example; 662 | SDKROOT = iphoneos; 663 | SKIP_INSTALL = YES; 664 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 665 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 666 | SWIFT_VERSION = 3.0; 667 | TARGETED_DEVICE_FAMILY = "1,2"; 668 | VERSIONING_SYSTEM = "apple-generic"; 669 | VERSION_INFO_PREFIX = ""; 670 | }; 671 | name = Debug; 672 | }; 673 | /* End XCBuildConfiguration section */ 674 | 675 | /* Begin XCConfigurationList section */ 676 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 677 | isa = XCConfigurationList; 678 | buildConfigurations = ( 679 | A6A03C9B1314C05BD3C2FBD3F65EDF83 /* Debug */, 680 | 717E77604BFBB04BEAF56608A1CB2EDE /* Release */, 681 | ); 682 | defaultConfigurationIsVisible = 0; 683 | defaultConfigurationName = Release; 684 | }; 685 | 36C07B427C66C9A64FDD156E3A28F652 /* Build configuration list for PBXNativeTarget "Pods-AMPFloatingTextField_Example" */ = { 686 | isa = XCConfigurationList; 687 | buildConfigurations = ( 688 | DB22AEB0DD594A68517D49FD7E4D60F4 /* Debug */, 689 | 4741E953B3DAEF3D8B8A4448B7BAE809 /* Release */, 690 | ); 691 | defaultConfigurationIsVisible = 0; 692 | defaultConfigurationName = Release; 693 | }; 694 | B3BFC16EE7F813C4FF89732E79013852 /* Build configuration list for PBXNativeTarget "AMPFloatingTextField" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | 28D65A95F81D53FC0D2640C17CE7FCCF /* Debug */, 698 | AFEEECF6F21352378E5AC156BF40B956 /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | C275E2BACB067BA7C8B985A494E9B842 /* Build configuration list for PBXNativeTarget "Pods-AMPFloatingTextField_Tests" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | A09C569B5DF76FF1C6A749F84DBB0ED1 /* Debug */, 707 | 06E5DE0DA13B446A576B31D99E7A944C /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | /* End XCConfigurationList section */ 713 | }; 714 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 715 | } 716 | --------------------------------------------------------------------------------