├── Pod ├── Assets │ ├── .gitkeep │ └── Images.xcassets │ │ ├── Contents.json │ │ └── checked.imageset │ │ ├── checked.png │ │ ├── checked@2x.png │ │ ├── checked@3x.png │ │ └── Contents.json └── Classes │ ├── .gitkeep │ ├── ACTFLabel.swift │ ├── ACTFProtocols.swift │ ├── ACTFDomain.swift │ ├── ACTFConstants.swift │ └── AutoCompleteTextField.swift ├── _Pods.xcodeproj ├── Example ├── AutoCompleteTextField │ ├── Images.xcassets │ │ ├── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── 40.jpg │ │ │ ├── 58.jpg │ │ │ ├── 60.jpg │ │ │ ├── 80.jpg │ │ │ ├── 87.jpg │ │ │ ├── 1024.jpg │ │ │ ├── 120.jpg │ │ │ ├── 180.jpg │ │ │ ├── 120 1.jpg │ │ │ └── Contents.json │ │ └── checked.imageset │ │ │ ├── checked.png │ │ │ ├── checked@2x.png │ │ │ ├── checked@3x.png │ │ │ └── Contents.json │ ├── Info.plist │ ├── AppDelegate.swift │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── ViewController.swift │ └── Main.storyboard ├── Pods │ ├── Target Support Files │ │ ├── AutoCompleteTextField │ │ │ ├── AutoCompleteTextField.modulemap │ │ │ ├── AutoCompleteTextField-dummy.m │ │ │ ├── AutoCompleteTextField-prefix.pch │ │ │ ├── AutoCompleteTextField-umbrella.h │ │ │ ├── AutoCompleteTextField.debug.xcconfig │ │ │ ├── AutoCompleteTextField.release.xcconfig │ │ │ └── AutoCompleteTextField-Info.plist │ │ ├── Pods-AutoCompleteTextField_Tests │ │ │ ├── Pods-AutoCompleteTextField_Tests.modulemap │ │ │ ├── Pods-AutoCompleteTextField_Tests-dummy.m │ │ │ ├── Pods-AutoCompleteTextField_Tests-umbrella.h │ │ │ ├── Info.plist │ │ │ ├── Pods-AutoCompleteTextField_Tests-Info.plist │ │ │ ├── Pods-AutoCompleteTextField_Tests.debug.xcconfig │ │ │ ├── Pods-AutoCompleteTextField_Tests.release.xcconfig │ │ │ ├── Pods-AutoCompleteTextField_Tests-acknowledgements.markdown │ │ │ ├── Pods-AutoCompleteTextField_Tests-acknowledgements.plist │ │ │ ├── Pods-AutoCompleteTextField_Tests-resources.sh │ │ │ └── Pods-AutoCompleteTextField_Tests-frameworks.sh │ │ └── Pods-AutoCompleteTextField_Example │ │ │ ├── Pods-AutoCompleteTextField_Example.modulemap │ │ │ ├── Pods-AutoCompleteTextField_Example-dummy.m │ │ │ ├── Pods-AutoCompleteTextField_Example-umbrella.h │ │ │ ├── Info.plist │ │ │ ├── Pods-AutoCompleteTextField_Example-Info.plist │ │ │ ├── Pods-AutoCompleteTextField_Example.debug.xcconfig │ │ │ ├── Pods-AutoCompleteTextField_Example.release.xcconfig │ │ │ ├── Pods-AutoCompleteTextField_Example-acknowledgements.markdown │ │ │ ├── Pods-AutoCompleteTextField_Example-acknowledgements.plist │ │ │ ├── Pods-AutoCompleteTextField_Example-resources.sh │ │ │ └── Pods-AutoCompleteTextField_Example-frameworks.sh │ ├── Manifest.lock │ ├── Local Podspecs │ │ └── AutoCompleteTextField.podspec.json │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── AutoCompleteTextField.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── AutoCompleteTextField-Example.xcscheme │ └── project.pbxproj ├── AutoCompleteTextField.xcworkspace │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── contents.xcworkspacedata ├── Podfile ├── Podfile.lock └── Tests │ ├── Info.plist │ └── Tests.swift ├── .travis.yml ├── .gitignore ├── .github └── pull_request_template.md ├── LICENSE ├── AutoCompleteTextField.podspec ├── AutoCompleteTextField ├── 0.1.12 │ └── AutoCompleteTextField.podspec ├── 0.2.0 │ └── AutoCompleteTextField.podspec └── 0.2.1 │ └── AutoCompleteTextField.podspec └── README.md /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Pod/Assets/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Pod/Assets/Images.xcassets/checked.imageset/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Pod/Assets/Images.xcassets/checked.imageset/checked.png -------------------------------------------------------------------------------- /Pod/Assets/Images.xcassets/checked.imageset/checked@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Pod/Assets/Images.xcassets/checked.imageset/checked@2x.png -------------------------------------------------------------------------------- /Pod/Assets/Images.xcassets/checked.imageset/checked@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Pod/Assets/Images.xcassets/checked.imageset/checked@3x.png -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/40.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/40.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/58.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/58.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/60.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/60.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/80.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/80.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/87.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/87.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/1024.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/1024.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/120.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/120.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/180.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/180.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/120 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/120 1.jpg -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/checked.imageset/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/checked.imageset/checked.png -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/checked.imageset/checked@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/checked.imageset/checked@2x.png -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/checked.imageset/checked@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nfhipona/AutoCompleteTextField/HEAD/Example/AutoCompleteTextField/Images.xcassets/checked.imageset/checked@3x.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AutoCompleteTextField/AutoCompleteTextField.modulemap: -------------------------------------------------------------------------------- 1 | framework module AutoCompleteTextField { 2 | umbrella header "AutoCompleteTextField-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AutoCompleteTextField/AutoCompleteTextField-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AutoCompleteTextField : NSObject 3 | @end 4 | @implementation PodsDummy_AutoCompleteTextField 5 | @end 6 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AutoCompleteTextField_Tests { 2 | umbrella header "Pods-AutoCompleteTextField_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AutoCompleteTextField_Example { 2 | umbrella header "Pods-AutoCompleteTextField_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AutoCompleteTextField_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AutoCompleteTextField_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AutoCompleteTextField_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AutoCompleteTextField_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Pod/Classes/ACTFLabel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ACTFLabel.swift 3 | // Pods 4 | // 5 | // Created by Neil Francis Hipona on 17/09/2017. 6 | // 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | public class ACTFLabel: UILabel { 13 | public unowned var domain: ACTFDomain! 14 | } 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AutoCompleteTextField/AutoCompleteTextField-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/AutoCompleteTextField.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | platform :ios, '12.0' 4 | 5 | target 'AutoCompleteTextField_Example' do 6 | pod 'AutoCompleteTextField', :path => '../' 7 | end 8 | 9 | target 'AutoCompleteTextField_Tests' do 10 | pod 'AutoCompleteTextField', :path => '../' 11 | 12 | 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AutoCompleteTextField (0.5.0) 3 | 4 | DEPENDENCIES: 5 | - AutoCompleteTextField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AutoCompleteTextField: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | AutoCompleteTextField: c1b32c142962ae80aadb99004eb476dd4de389cc 13 | 14 | PODFILE CHECKSUM: d8fc9a379abb86079c1b5accdee030f2643eea46 15 | 16 | COCOAPODS: 1.12.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AutoCompleteTextField (0.5.0) 3 | 4 | DEPENDENCIES: 5 | - AutoCompleteTextField (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AutoCompleteTextField: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | AutoCompleteTextField: c1b32c142962ae80aadb99004eb476dd4de389cc 13 | 14 | PODFILE CHECKSUM: d8fc9a379abb86079c1b5accdee030f2643eea46 15 | 16 | COCOAPODS: 1.12.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AutoCompleteTextField/AutoCompleteTextField-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 AutoCompleteTextFieldVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char AutoCompleteTextFieldVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_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_AutoCompleteTextField_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AutoCompleteTextField_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Pod/Assets/Images.xcassets/checked.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "checked.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "checked@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "checked@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_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_AutoCompleteTextField_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AutoCompleteTextField_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Images.xcassets/checked.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "checked.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "checked@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "checked@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/AutoCompleteTextField.xcworkspace -scheme AutoCompleteTextField-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /Pod/Classes/ACTFProtocols.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ACTFProtocols.swift 3 | // Pods 4 | // 5 | // Created by Neil Francis Hipona on 16/07/2016. 6 | // Copyright (c) 2016 Neil Francis Ramirez Hipona. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | // MARK: - AutoCompleteTextField Protocol 13 | 14 | public protocol ACTFDataSource: AnyObject { 15 | // Required protocols 16 | 17 | /// called when in need of suggestions. 18 | func autoCompleteTextFieldDataSource(_ autoCompleteTextField: AutoCompleteTextField) -> [ACTFDomain] 19 | } 20 | 21 | public protocol ACTFDelegate: AnyObject { 22 | /// will be called upon successful suggestion 23 | func autoCompleteTextField(_ autoCompleteTextField: AutoCompleteTextField, didSuggestDomain domain: ACTFDomain) 24 | } 25 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import AutoCompleteTextField 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/AutoCompleteTextField.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AutoCompleteTextField", 3 | "version": "0.5.0", 4 | "swift_versions": "5", 5 | "platforms": { 6 | "ios": "12.0" 7 | }, 8 | "summary": "TextField Subclass with auto completion feature.", 9 | "description": "\"A TextField Subclass that has input suggestion for user's convenience, when auto completion feature kicks in, it uses the suggestions from the datasource provided by the user or from the default domain.\"", 10 | "homepage": "https://github.com/nferocious76/AutoCompleteTextField", 11 | "license": "MIT", 12 | "authors": { 13 | "Neil Francis Ramirez Hipona": "nferocious76@gmail.com" 14 | }, 15 | "source": { 16 | "git": "https://github.com/nferocious76/AutoCompleteTextField.git", 17 | "tag": "0.5.0" 18 | }, 19 | "source_files": "Pod/Classes/**/*", 20 | "resources": "Pod/Assets/*.xcassets", 21 | "swift_version": "5" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AutoCompleteTextField/AutoCompleteTextField.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 5 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} 9 | PODS_ROOT = ${SRCROOT} 10 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 13 | SKIP_INSTALL = YES 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AutoCompleteTextField/AutoCompleteTextField.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 5 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE} 9 | PODS_ROOT = ${SRCROOT} 10 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 13 | SKIP_INSTALL = YES 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_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-AutoCompleteTextField_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/AutoCompleteTextField/AutoCompleteTextField-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | ${PODS_DEVELOPMENT_LANGUAGE} 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.5.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Description 4 | 5 | 6 | 7 | ## Motivation and Context 8 | 9 | 10 | 11 | ## Validation 12 | 13 | 14 | 15 | 16 | 17 | ## Screenshots (if appropriate) 18 | 19 | 20 | 21 | ## Types of changes 22 | 23 | 24 | 25 | - [ ] Bug fix (non-breaking change which fixes an issue) 26 | - [ ] New feature (non-breaking change which adds functionality) 27 | - [ ] Improvement (non-breaking change which enhances existing functionalities) 28 | - [ ] Breaking change (fix or feature that would cause existing functionality or the API to change) -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | ${PODS_DEVELOPMENT_LANGUAGE} 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-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | ${PODS_DEVELOPMENT_LANGUAGE} 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Neil Francis Ramirez Hipona 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/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "AutoCompleteTextField" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "AutoCompleteTextField" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift "$(PLATFORM_DIR)/Developer/Library/Frameworks" '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "AutoCompleteTextField" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift "$(PLATFORM_DIR)/Developer/Library/Frameworks" '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "AutoCompleteTextField" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/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/AutoCompleteTextField/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "40.jpg", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "60.jpg", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "58.jpg", 17 | "idiom" : "iphone", 18 | "scale" : "2x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "87.jpg", 23 | "idiom" : "iphone", 24 | "scale" : "3x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "80.jpg", 29 | "idiom" : "iphone", 30 | "scale" : "2x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "filename" : "120.jpg", 35 | "idiom" : "iphone", 36 | "scale" : "3x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "120 1.jpg", 41 | "idiom" : "iphone", 42 | "scale" : "2x", 43 | "size" : "60x60" 44 | }, 45 | { 46 | "filename" : "180.jpg", 47 | "idiom" : "iphone", 48 | "scale" : "3x", 49 | "size" : "60x60" 50 | }, 51 | { 52 | "filename" : "1024.jpg", 53 | "idiom" : "ios-marketing", 54 | "scale" : "1x", 55 | "size" : "1024x1024" 56 | } 57 | ], 58 | "info" : { 59 | "author" : "xcode", 60 | "version" : 1 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## AutoCompleteTextField 5 | 6 | Copyright (c) 2016 Neil Francis Ramirez Hipona 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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## AutoCompleteTextField 5 | 6 | Copyright (c) 2016 Neil Francis Ramirez Hipona 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 | -------------------------------------------------------------------------------- /AutoCompleteTextField.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint AutoCompleteTextField.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 = "AutoCompleteTextField" 11 | s.version = "1.0.1" 12 | s.swift_version = "5" 13 | s.platform = :ios, '12.0' 14 | s.summary = "TextField Subclass with auto completion feature." 15 | 16 | # This description is used to generate tags and improve search results. 17 | # * Think: What does it do? Why did you write it? What is the focus? 18 | # * Try to keep it short, snappy and to the point. 19 | # * Write the description between the DESC delimiters below. 20 | # * Finally, don't worry about the indent, CocoaPods strips it! 21 | s.description = <<-DESC 22 | 23 | "A TextField Subclass that has input suggestion for user's convenience, when auto completion feature kicks in, it uses the suggestions from the datasource provided by the user or from the default domain." 24 | 25 | DESC 26 | 27 | s.homepage = "https://github.com/nferocious76/AutoCompleteTextField" 28 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 29 | s.license = 'MIT' 30 | s.author = { "Neil Francis Ramirez Hipona" => "nferocious76@gmail.com" } 31 | s.source = { :git => "https://github.com/nferocious76/AutoCompleteTextField.git", :tag => s.version.to_s } 32 | # s.social_media_url = 'https://twitter.com/nferocious76' 33 | 34 | s.source_files = 'Pod/Classes/**/*' 35 | s.resources = "Pod/Assets/*.xcassets" 36 | 37 | end 38 | -------------------------------------------------------------------------------- /AutoCompleteTextField/0.1.12/AutoCompleteTextField.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint AutoCompleteTextField.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 = "AutoCompleteTextField" 11 | s.version = "0.1.12" 12 | s.summary = "TextField Subclass with auto completion feature." 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 | s.description = <<-DESC 20 | 21 | "A TextField Subclass that has input suggestion for user's convenience where auto completion feature kicks in where the suggestions are from filtered data from the provided source of the user." 22 | 23 | DESC 24 | 25 | s.homepage = "https://github.com/nferocious76/AutoCompleteTextField" 26 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 27 | s.license = 'MIT' 28 | s.author = { "Neil Francis Ramirez Hipona" => "nferocious76@gmail.com" } 29 | s.source = { :git => "https://github.com/nferocious76/AutoCompleteTextField.git", :tag => s.version.to_s } 30 | # s.social_media_url = 'https://twitter.com/nferocious76' 31 | 32 | s.platform = :ios, '8.0' 33 | s.requires_arc = true 34 | 35 | s.source_files = 'Pod/Classes/**/*' 36 | s.resource_bundles = { 37 | 'AutoCompleteTextField' => ['Pod/Assets/**/*.{png,jpeg,jpg}'] 38 | } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | # s.frameworks = 'UIKit', 'MapKit' 42 | # s.dependency 'AFNetworking', '~> 2.3' 43 | end 44 | -------------------------------------------------------------------------------- /AutoCompleteTextField/0.2.0/AutoCompleteTextField.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint AutoCompleteTextField.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 = "AutoCompleteTextField" 11 | s.version = "0.2.0" 12 | s.summary = "TextField Subclass with auto completion feature." 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 | s.description = <<-DESC 20 | 21 | "A TextField Subclass that has input suggestion for user's convenience where auto completion feature kicks in where the suggestions are from filtered data from the provided source of the user." 22 | 23 | DESC 24 | 25 | s.homepage = "https://github.com/nferocious76/AutoCompleteTextField" 26 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 27 | s.license = 'MIT' 28 | s.author = { "Neil Francis Ramirez Hipona" => "nferocious76@gmail.com" } 29 | s.source = { :git => "https://github.com/nferocious76/AutoCompleteTextField.git", :tag => s.version.to_s } 30 | # s.social_media_url = 'https://twitter.com/nferocious76' 31 | 32 | s.platform = :ios, '8.0' 33 | s.requires_arc = true 34 | 35 | s.source_files = 'Pod/Classes/**/*' 36 | s.resource_bundles = { 37 | 'AutoCompleteTextField' => ['Pod/Assets/**/*.{png,jpeg,jpg}'] 38 | } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | # s.frameworks = 'UIKit', 'MapKit' 42 | # s.dependency 'AFNetworking', '~> 2.3' 43 | end 44 | -------------------------------------------------------------------------------- /AutoCompleteTextField/0.2.1/AutoCompleteTextField.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint AutoCompleteTextField.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 = "AutoCompleteTextField" 11 | s.version = "0.2.1" 12 | s.summary = "TextField Subclass with auto completion feature." 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 | s.description = <<-DESC 20 | 21 | "A TextField Subclass that has input suggestion for user's convenience where auto completion feature kicks in where the suggestions are from filtered data from the provided source of the user." 22 | 23 | DESC 24 | 25 | s.homepage = "https://github.com/nferocious76/AutoCompleteTextField" 26 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 27 | s.license = 'MIT' 28 | s.author = { "Neil Francis Ramirez Hipona" => "nferocious76@gmail.com" } 29 | s.source = { :git => "https://github.com/nferocious76/AutoCompleteTextField.git", :tag => s.version.to_s } 30 | # s.social_media_url = 'https://twitter.com/nferocious76' 31 | 32 | s.platform = :ios, '8.0' 33 | s.requires_arc = true 34 | 35 | s.source_files = 'Pod/Classes/**/*' 36 | s.resource_bundles = { 37 | 'AutoCompleteTextField' => ['Pod/Assets/**/*.{png,jpeg,jpg}'] 38 | } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | # s.frameworks = 'UIKit', 'MapKit' 42 | # s.dependency 'AFNetworking', '~> 2.3' 43 | end 44 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AutoCompleteTextField 4 | // 5 | // Created by Neil Francis Ramirez Hipona on 03/19/2016. 6 | // Copyright (c) 2016 Neil Francis Ramirez Hipona. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2016 Neil Francis Ramirez Hipona <nferocious76@gmail.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 | AutoCompleteTextField 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/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_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 | Copyright (c) 2016 Neil Francis Ramirez Hipona <nferocious76@gmail.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 | AutoCompleteTextField 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 | -------------------------------------------------------------------------------- /Pod/Classes/ACTFDomain.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ACTFWeightedDomain.swift 3 | // Pods 4 | // 5 | // Created by Neil Francis Hipona on 9/15/17. 6 | // Copyright © 2017 AJ Bartocci. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public class ACTFDomain: Codable { 12 | public let text: String 13 | public var weight: Int 14 | /// Will auto store on `weight` update using `text` default to `true` 15 | public let isAutoStoringEnabled: Bool 16 | 17 | // MARK: - Initializer 18 | 19 | public init(text t: String, weight w: Int, isAutoStoringEnabled autoStoringEnabled: Bool = true) { 20 | text = t 21 | weight = w 22 | isAutoStoringEnabled = autoStoringEnabled 23 | } 24 | 25 | // MARK: - Functions 26 | 27 | public func updateWeightUsage() { 28 | weight += 1 29 | 30 | if isAutoStoringEnabled { 31 | store() 32 | } 33 | } 34 | } 35 | 36 | extension ACTFDomain { 37 | 38 | /// Store domain with a specific key 39 | @discardableResult 40 | public func store() -> Bool { 41 | // store 42 | guard let encoded = try? PropertyListEncoder().encode(self), 43 | let archived = try? NSKeyedArchiver.archivedData(withRootObject: encoded, requiringSecureCoding: true) 44 | else { return false } 45 | 46 | UserDefaults.standard.set(archived, forKey: text) 47 | UserDefaults.standard.synchronize() 48 | return true 49 | } 50 | 51 | // MARK: - Type-level Functions 52 | 53 | /// Retrieve domain with a specific key 54 | @discardableResult 55 | public static func domain(for key: String) -> ACTFDomain? { 56 | // retrieved 57 | guard let data = UserDefaults.standard.object(forKey: key) as? Data, 58 | let decoded = try? NSKeyedUnarchiver.unarchivedObject(ofClass: NSData.self, from: data) as? Data, 59 | let domain = try? PropertyListDecoder().decode(ACTFDomain.self, from: decoded) 60 | else { return nil } // retrieve failed 61 | return domain 62 | } 63 | 64 | /// Retrieve domains with keys 65 | @discardableResult 66 | public static func domain(for keys: [String]) -> [ACTFDomain] { 67 | var collection: [ACTFDomain] = [] 68 | for key in keys { 69 | if let domain = domain(for: key) { 70 | collection.append(domain) 71 | } 72 | } 73 | return collection 74 | } 75 | 76 | /// Store domains for a specific key 77 | @discardableResult 78 | public static func store(domains: [ACTFDomain]) -> [String] { 79 | var errors: [String] = [] 80 | for domain in domains { 81 | if !domain.store() { 82 | errors.append("Domain '\(domain.text)' store failed") 83 | } 84 | } 85 | 86 | return errors 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/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/AutoCompleteTextField.xcodeproj/xcshareddata/xcschemes/AutoCompleteTextField-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 55 | 56 | 66 | 68 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AutoCompleteTextField 4 | // 5 | // Created by Neil Francis Ramirez Hipona on 03/19/2016. 6 | // Copyright (c) 2016 Neil Francis Ramirez Hipona. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AutoCompleteTextField 11 | 12 | class ViewController: UIViewController, ACTFDataSource, ACTFDelegate, UITextFieldDelegate { 13 | 14 | @IBOutlet weak var txtEmail: AutoCompleteTextField! 15 | @IBOutlet weak var txtReEmail: AutoCompleteTextField! 16 | @IBOutlet weak var txtPassword: AutoCompleteTextField! 17 | 18 | let domainNames = ["gmail.com", 19 | "yahoo.com", 20 | "hotmail.com", 21 | "aol.com", 22 | "comcast.net", 23 | "me.com", 24 | "msn.com", 25 | "live.com", 26 | "sbcglobal.net", 27 | "ymail.com", 28 | "icloud.com"] 29 | 30 | // add weighted domain names 31 | var weightedDomains: [ACTFDomain] = [] 32 | 33 | override func viewDidLoad() { 34 | super.viewDidLoad() 35 | // Do any additional setup after loading the view, typically from a nib. 36 | 37 | // Optional setting for delegate if not setted in IB 38 | // txtEmail.dataSource = self 39 | txtReEmail.dataSource = self 40 | 41 | txtEmail.setDelimiter("@") 42 | txtReEmail.setDelimiter("@") 43 | 44 | txtEmail.delegate = self 45 | txtReEmail.delegate = self 46 | 47 | // Show right side complete button 48 | txtEmail.showAutoCompleteButtonWithImage(UIImage(named: "checked"), viewMode: .whileEditing) 49 | txtReEmail.showAutoCompleteButtonWithImage(UIImage(named: "checked"), viewMode: .whileEditing) 50 | 51 | // Initializing with datasource and delegate 52 | /*let actfWithDelegateAndDataSource = AutoCompleteTextField(frame: CGRect(x: 20, y: 64, width: view.frame.width - 40, height: 40), dataSource: self, delegate: self) 53 | actfWithDelegateAndDataSource.backgroundColor = .red 54 | view.addSubview(actfWithDelegateAndDataSource)*/ 55 | 56 | let keys = ["gmail.com", "googlemail.com", "google.com", "georgetown.edu"] 57 | let retriedDomains = ACTFDomain.domain(for: keys) 58 | if retriedDomains.count > 0 { 59 | weightedDomains = retriedDomains 60 | } else { 61 | let g1 = ACTFDomain(text: "gmail.com", weight: 10) 62 | let g2 = ACTFDomain(text: "googlemail.com", weight: 5) 63 | let g3 = ACTFDomain(text: "google.com", weight: 4) 64 | let g4 = ACTFDomain(text: "georgetown.edu", weight: 1) 65 | weightedDomains = [g1, g2, g3, g4] 66 | 67 | // store single 68 | if g1.store() { 69 | print("Store: \(g1.text) success") 70 | } 71 | 72 | // store multiple 73 | let errors = ACTFDomain.store(domains: weightedDomains) 74 | if errors.count > 0 { 75 | print("Store domain errors: ", errors) 76 | } 77 | } 78 | 79 | // retrieved single 80 | if let domain = ACTFDomain.domain(for: "gmail.com") { 81 | print("Retrieved single: ", domain.text, domain.weight) 82 | } 83 | 84 | print("Retrieved domains: ", retriedDomains.map ({ "Domain: \($0.text) - weight: \($0.weight)" })) 85 | } 86 | 87 | override func didReceiveMemoryWarning() { 88 | super.didReceiveMemoryWarning() 89 | // Dispose of any resources that can be recreated. 90 | } 91 | 92 | // MARK: - ACTFDataSource 93 | 94 | func autoCompleteTextFieldDataSource(_ autoCompleteTextField: AutoCompleteTextField) -> [ACTFDomain] { 95 | 96 | return weightedDomains // AutoCompleteTextField.domainNames // [ACTFDomain(text: "gmail.com", weight: 0), ACTFDomain(text: "hotmail.com", weight: 0), ACTFDomain(text: "domain.net", weight: 0)] 97 | } 98 | 99 | // MARK: - ACTFDelegate 100 | 101 | func autoCompleteTextField(_ autoCompleteTextField: AutoCompleteTextField, didSuggestDomain domain: ACTFDomain) { 102 | print("Suggested domain: \(domain.text) - weight: \(domain.weight)") 103 | } 104 | 105 | // MARK: - UITextFieldDelegate 106 | 107 | func textFieldShouldReturn(_ textField: UITextField) -> Bool { 108 | 109 | if textField == txtEmail { 110 | return txtReEmail.becomeFirstResponder() 111 | } else if textField == txtReEmail { 112 | return txtPassword.becomeFirstResponder() 113 | } else { 114 | return txtPassword.resignFirstResponder() 115 | } 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | 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}" 42 | 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} 43 | ;; 44 | *.xib) 45 | 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}" 46 | 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} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | 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}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | 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}" 42 | 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} 43 | ;; 44 | *.xib) 45 | 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}" 46 | 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} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | 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}" 96 | fi 97 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AutoCompleteTextField 2 | 3 | [![CI Status](https://img.shields.io/badge/build-passed-brightgreen.svg)](https://img.shields.io/badge/build-passed-brightgreen.svg) 4 | [![Version](https://img.shields.io/badge/pod-v0.5.0-blue.svg)](https://img.shields.io/badge/pod-v0.5.0-blue.svg) 5 | [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://img.shields.io/badge/Lisence-MIT-yellow.svg) 6 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 7 | [![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)](https://img.shields.io/badge/platform-ios-lightgrey.svg) 8 | 9 | ![ezgif com-resize 1](https://cloud.githubusercontent.com/assets/6511079/16903266/0f2c58e2-4c50-11e6-827c-57b47992c9b2.gif) 10 | 11 | 12 | ## Features 13 | - [x] Provides a subclass of UITextField that has suggestion from input 14 | - [x] Has autocomplete input feature 15 | - [x] Data suggestion are provided by users 16 | - [x] Enable store smart domains 17 | - [x] Optimized and light weight 18 | 19 | 20 | ## Requirements 21 | 22 | - iOS 12.0+ 23 | - Swift 5.x 24 | 25 | 26 | ## Installation 27 | 28 | #### CocoaPods 29 | You can use [CocoaPods](http://cocoapods.org/) to install `AutoCompleteTextField` by adding it to your `Podfile`: 30 | 31 | ```ruby 32 | pod "AutoCompleteTextField" 33 | ``` 34 | 35 | #### Carthage 36 | Create a `Cartfile` that lists the framework and run `carthage bootstrap`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/AutoCompleteTextField.framework` to an iOS project. 37 | 38 | ``` 39 | github "nferocious76/AutoCompleteTextField" 40 | ``` 41 | 42 | #### Manually 43 | 1. Download and drop ```/Pod/Classes```folder in your project. 44 | 2. Congratulations! 45 | 46 | ## Usage 47 | 48 | ```Swift 49 | 50 | // Initializing `AutoCompleteTextField` 51 | let myTextField = AutoCompleteTextField(frame: CGRect(x: 20, y: 64, width: view.frame.width - 40, height: 40), dataSource: `YourDataSource`, delegate: `YourDelegate`) 52 | 53 | // Setting `dataSource`, it can be set from the XCode IB like `TextFieldDelegate` in which will appear as `actfDataSource` 54 | myTextField.dataSource = `YourDataSource` 55 | 56 | // Setting delimiter (optional). If set, it will only look for suggestion after the delimiter 57 | myTextField.setDelimiter("@") 58 | 59 | // Show `AutoCompleteButton` 60 | myTextField.showAutoCompleteButtonWithImage(UIImage(named: "checked"), viewMode: .whileEditing) 61 | 62 | // Providing data source to get the suggestion from inputs 63 | func autoCompleteTextFieldDataSource(_ autoCompleteTextField: AutoCompleteTextField) -> [ACTFWeightedDomain] { 64 | return weightedDomains // AutoCompleteTextField.domainNames // [ACTFDomain(text: "gmail.com", weight: 0), ACTFDomain(text: "hotmail.com", weight: 0), ACTFDomain(text: "domain.net", weight: 0)] 65 | } 66 | 67 | // optional delegate for checking what was suggested 68 | func autoCompleteTextField(_ autoCompleteTextField: AutoCompleteTextField, didSuggestDomain domain: ACTFDomain) { 69 | print("Suggested domain: \(domain.text) - weight: \(domain.weight)") 70 | } 71 | 72 | ``` 73 | 74 | ## ACTFDomain 75 | 76 | `ACTFDomain` is class type that conforms to the `Codable`. User can store and retrieve smart domains. 77 | 78 | One example may be 'gmail.com' and 'georgetown.edu'. Users are more likely to have a 'gmail.com' account so we would want that to show up before 'georgetown.edu', even though that is out of alphabetical order. 79 | 80 | `ACTFDomain` is sorted based on its usage with auto storing flag that is default to true. 81 | 82 | This is just one example. Manually providing a suggestion gives more flexibility and does not force the usage of an array of strings. 83 | 84 | ```Swift 85 | 86 | // Usage 87 | let g1 = ACTFDomain(text: "gmail.com", weight: 10) 88 | let g2 = ACTFDomain(text: "googlemail.com", weight: 5) 89 | let g3 = ACTFDomain(text: "google.com", weight: 4) 90 | let g4 = ACTFDomain(text: "georgetown.edu", weight: 1) 91 | 92 | let weightedDomains = [g1, g2, g3, g4] // [ACTFDomain] 93 | 94 | // Storing 95 | 96 | // store single 97 | if g1.store() { 98 | print("Store success") 99 | } 100 | 101 | // store multiple 102 | let errors = ACTFDomain.store(domains: weightedDomains) 103 | if errors.count > 0 { 104 | print("Store domain errors: ", errors) 105 | } 106 | 107 | // Retrieving 108 | 109 | // retrieved single 110 | if let domain = ACTFDomain.domain(for: "gmail.com") { 111 | print("Retrieved single: ", domain.text, domain.weight) 112 | } 113 | 114 | // retrieved multiple 115 | let keys = ["gmail.com", "googlemail.com", "google.com", "georgetown.edu"] 116 | let retriedDomains = ACTFDomain.domain(for: keys) 117 | print("Retrieved domains: ", retriedDomains.map ({ "Domain: \($0.text) - weight: \($0.weight)" })) 118 | 119 | ``` 120 | 121 | ## Contribute 122 | We would love for you to contribute to `AutoCompleteTextField`. See the [LICENSE](https://github.com/nferocious76/AutoCompleteTextField/blob/master/LICENSE) file for more info. 123 | 124 | ## Author 125 | 126 | Neil Francis Ramirez Hipona, nferocious76@gmail.com 127 | 128 | ### About 129 | 130 | This project was inpired by 'HTAutocompleteTextField' an Objc-C framework of a similar feature. 131 | 132 | ## License 133 | 134 | AutoCompleteTextField is available under the MIT license. See the [LICENSE](https://github.com/nferocious76/AutoCompleteTextField/blob/master/LICENSE) file for more info. 135 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /Pod/Classes/ACTFConstants.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ACTFConstants.swift 3 | // Pods 4 | // 5 | // Created by Neil Francis Hipona on 16/07/2016. 6 | // Copyright (c) 2016 Neil Francis Ramirez Hipona. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | 13 | // MARK: - Internal 14 | 15 | internal let DefaultButtonWidth: CGFloat = 30.0 16 | internal let DefaultButtonHeight: CGFloat = 30.0 17 | 18 | /// Supported domain names 19 | internal let SupportedDomainNames: [ACTFDomain] = { 20 | [ACTFDomain(text: "gmail.com", weight: 0), 21 | ACTFDomain(text: "yahoo.com", weight: 0), 22 | ACTFDomain(text: "hotmail.com", weight: 0), 23 | ACTFDomain(text: "aol.com", weight: 0), 24 | ACTFDomain(text: "comcast.net", weight: 0), 25 | ACTFDomain(text: "me.com", weight: 0), 26 | ACTFDomain(text: "msn.com", weight: 0), 27 | ACTFDomain(text: "live.com", weight: 0), 28 | ACTFDomain(text: "sbcglobal.net", weight: 0), 29 | ACTFDomain(text: "ymail.com", weight: 0), 30 | ACTFDomain(text: "att.net", weight: 0), 31 | ACTFDomain(text: "mac.com", weight: 0), 32 | ACTFDomain(text: "cox.net", weight: 0), 33 | ACTFDomain(text: "verizon.net", weight: 0), 34 | ACTFDomain(text: "hotmail.co.uk", weight: 0), 35 | ACTFDomain(text: "bellsouth.net", weight: 0), 36 | ACTFDomain(text: "rocketmail.com", weight: 0), 37 | ACTFDomain(text: "aim.com", weight: 0), 38 | ACTFDomain(text: "yahoo.co.uk", weight: 0), 39 | ACTFDomain(text: "earthlink.net", weight: 0), 40 | ACTFDomain(text: "charter.net", weight: 0), 41 | ACTFDomain(text: "optonline.net", weight: 0), 42 | ACTFDomain(text: "shaw.ca", weight: 0), 43 | ACTFDomain(text: "yahoo.ca", weight: 0), 44 | ACTFDomain(text: "googlemail.com", weight: 0), 45 | ACTFDomain(text: "mail.com", weight: 0), 46 | ACTFDomain(text: "qq.com", weight: 0), 47 | ACTFDomain(text: "btinternet.com", weight: 0), 48 | ACTFDomain(text: "mail.ru", weight: 0), 49 | ACTFDomain(text: "live.co.uk", weight: 0), 50 | ACTFDomain(text: "naver.com", weight: 0), 51 | ACTFDomain(text: "rogers.com", weight: 0), 52 | ACTFDomain(text: "juno.com", weight: 0), 53 | ACTFDomain(text: "yahoo.com.tw", weight: 0), 54 | ACTFDomain(text: "live.ca", weight: 0), 55 | ACTFDomain(text: "walla.com", weight: 0), 56 | ACTFDomain(text: "163.com", weight: 0), 57 | ACTFDomain(text: "roadrunner.com", weight: 0), 58 | ACTFDomain(text: "telus.net", weight: 0), 59 | ACTFDomain(text: "embarqmail.com", weight: 0), 60 | ACTFDomain(text: "hotmail.fr", weight: 0), 61 | ACTFDomain(text: "pacbell.net", weight: 0), 62 | ACTFDomain(text: "sky.com", weight: 0), 63 | ACTFDomain(text: "sympatico.ca", weight: 0), 64 | ACTFDomain(text: "cfl.rr.com", weight: 0), 65 | ACTFDomain(text: "tampabay.rr.com", weight: 0), 66 | ACTFDomain(text: "q.com", weight: 0), 67 | ACTFDomain(text: "yahoo.co.in", weight: 0), 68 | ACTFDomain(text: "yahoo.fr", weight: 0), 69 | ACTFDomain(text: "hotmail.ca", weight: 0), 70 | ACTFDomain(text: "windstream.net", weight: 0), 71 | ACTFDomain(text: "hotmail.it", weight: 0), 72 | ACTFDomain(text: "web.de", weight: 0), 73 | ACTFDomain(text: "asu.edu", weight: 0), 74 | ACTFDomain(text: "gmx.de", weight: 0), 75 | ACTFDomain(text: "gmx.com", weight: 0), 76 | ACTFDomain(text: "insightbb.com", weight: 0), 77 | ACTFDomain(text: "netscape.net", weight: 0), 78 | ACTFDomain(text: "icloud.com", weight: 0), 79 | ACTFDomain(text: "frontier.com", weight: 0), 80 | ACTFDomain(text: "126.com", weight: 0), 81 | ACTFDomain(text: "hanmail.net", weight: 0), 82 | ACTFDomain(text: "suddenlink.net", weight: 0), 83 | ACTFDomain(text: "netzero.net", weight: 0), 84 | ACTFDomain(text: "mindspring.com", weight: 0), 85 | ACTFDomain(text: "ail.com", weight: 0), 86 | ACTFDomain(text: "windowslive.com", weight: 0), 87 | ACTFDomain(text: "netzero.com", weight: 0), 88 | ACTFDomain(text: "yahoo.com.hk", weight: 0), 89 | ACTFDomain(text: "yandex.ru", weight: 0), 90 | ACTFDomain(text: "mchsi.com", weight: 0), 91 | ACTFDomain(text: "cableone.net", weight: 0), 92 | ACTFDomain(text: "yahoo.com.cn", weight: 0), 93 | ACTFDomain(text: "yahoo.es", weight: 0), 94 | ACTFDomain(text: "yahoo.com.br", weight: 0), 95 | ACTFDomain(text: "cornell.edu", weight: 0), 96 | ACTFDomain(text: "ucla.edu", weight: 0), 97 | ACTFDomain(text: "us.army.mil", weight: 0), 98 | ACTFDomain(text: "excite.com", weight: 0), 99 | ACTFDomain(text: "ntlworld.com", weight: 0), 100 | ACTFDomain(text: "usc.edu", weight: 0), 101 | ACTFDomain(text: "nate.com", weight: 0), 102 | ACTFDomain(text: "outlook.com", weight: 0), 103 | ACTFDomain(text: "nc.rr.com", weight: 0), 104 | ACTFDomain(text: "prodigy.net", weight: 0), 105 | ACTFDomain(text: "wi.rr.com", weight: 0), 106 | ACTFDomain(text: "videotron.ca", weight: 0), 107 | ACTFDomain(text: "yahoo.it", weight: 0), 108 | ACTFDomain(text: "yahoo.com.au", weight: 0), 109 | ACTFDomain(text: "umich.edu", weight: 0), 110 | ACTFDomain(text: "ameritech.net", weight: 0), 111 | ACTFDomain(text: "libero.it", weight: 0), 112 | ACTFDomain(text: "yahoo.de", weight: 0), 113 | ACTFDomain(text: "rochester.rr.com", weight: 0), 114 | ACTFDomain(text: "cs.com", weight: 0), 115 | ACTFDomain(text: "frontiernet.net", weight: 0), 116 | ACTFDomain(text: "swbell.net", weight: 0), 117 | ACTFDomain(text: "msu.edu", weight: 0), 118 | ACTFDomain(text: "ptd.net", weight: 0), 119 | ACTFDomain(text: "proxymail.facebook.com", weight: 0), 120 | ACTFDomain(text: "hotmail.es", weight: 0), 121 | ACTFDomain(text: "austin.rr.com", weight: 0), 122 | ACTFDomain(text: "nyu.edu", weight: 0), 123 | ACTFDomain(text: "sina.com", weight: 0), 124 | ACTFDomain(text: "centurytel.net", weight: 0), 125 | ACTFDomain(text: "usa.net", weight: 0), 126 | ACTFDomain(text: "nycap.rr.com", weight: 0), 127 | ACTFDomain(text: "uci.edu", weight: 0), 128 | ACTFDomain(text: "hotmail.de", weight: 0), 129 | ACTFDomain(text: "yahoo.com.sg", weight: 0), 130 | ACTFDomain(text: "email.arizona.edu", weight: 0), 131 | ACTFDomain(text: "yahoo.com.mx", weight: 0), 132 | ACTFDomain(text: "ufl.edu", weight: 0), 133 | ACTFDomain(text: "bigpond.com", weight: 0), 134 | ACTFDomain(text: "unlv.nevada.edu", weight: 0), 135 | ACTFDomain(text: "yahoo.cn", weight: 0), 136 | ACTFDomain(text: "ca.rr.com", weight: 0), 137 | ACTFDomain(text: "google.com", weight: 0), 138 | ACTFDomain(text: "yahoo.co.id", weight: 0), 139 | ACTFDomain(text: "inbox.com", weight: 0), 140 | ACTFDomain(text: "fuse.net", weight: 0), 141 | ACTFDomain(text: "hawaii.rr.com", weight: 0), 142 | ACTFDomain(text: "talktalk.net", weight: 0), 143 | ACTFDomain(text: "gmx.net", weight: 0), 144 | ACTFDomain(text: "walla.co.il", weight: 0), 145 | ACTFDomain(text: "ucdavis.edu", weight: 0), 146 | ACTFDomain(text: "carolina.rr.com", weight: 0), 147 | ACTFDomain(text: "comcast.com", weight: 0), 148 | ACTFDomain(text: "live.fr", weight: 0), 149 | ACTFDomain(text: "blueyonder.co.uk", weight: 0), 150 | ACTFDomain(text: "live.cn", weight: 0), 151 | ACTFDomain(text: "cogeco.ca", weight: 0), 152 | ACTFDomain(text: "abv.bg", weight: 0), 153 | ACTFDomain(text: "tds.net", weight: 0), 154 | ACTFDomain(text: "centurylink.net", weight: 0), 155 | ACTFDomain(text: "yahoo.com.vn", weight: 0), 156 | ACTFDomain(text: "uol.com.br", weight: 0), 157 | ACTFDomain(text: "osu.edu", weight: 0), 158 | ACTFDomain(text: "san.rr.com", weight: 0), 159 | ACTFDomain(text: "rcn.com", weight: 0), 160 | ACTFDomain(text: "umn.edu", weight: 0), 161 | ACTFDomain(text: "live.nl", weight: 0), 162 | ACTFDomain(text: "live.com.au", weight: 0), 163 | ACTFDomain(text: "tx.rr.com", weight: 0), 164 | ACTFDomain(text: "eircom.net", weight: 0), 165 | ACTFDomain(text: "sasktel.net", weight: 0), 166 | ACTFDomain(text: "post.harvard.edu", weight: 0), 167 | ACTFDomain(text: "snet.net", weight: 0), 168 | ACTFDomain(text: "wowway.com", weight: 0), 169 | ACTFDomain(text: "live.it", weight: 0), 170 | ACTFDomain(text: "hoteltonight.com", weight: 0), 171 | ACTFDomain(text: "att.com", weight: 0), 172 | ACTFDomain(text: "vt.edu", weight: 0), 173 | ACTFDomain(text: "rambler.ru", weight: 0), 174 | ACTFDomain(text: "temple.edu", weight: 0), 175 | ACTFDomain(text: "cinci.rr.com", weight: 0)] 176 | }() 177 | 178 | // MARK: - Public 179 | 180 | public typealias AutoCompleteButtonViewMode = UITextField.ViewMode 181 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink -f "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 99 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 113 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 114 | else 115 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 116 | mkdir -p "${DWARF_DSYM_FOLDER_PATH}" 117 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 118 | fi 119 | fi 120 | } 121 | 122 | # Used as a return value for each invocation of `strip_invalid_archs` function. 123 | STRIP_BINARY_RETVAL=0 124 | 125 | # Strip invalid architectures 126 | strip_invalid_archs() { 127 | binary="$1" 128 | warn_missing_arch=${2:-true} 129 | # Get architectures for current target binary 130 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 131 | # Intersect them with the architectures we are building for 132 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 133 | # If there are no archs supported by this binary then warn the user 134 | if [[ -z "$intersected_archs" ]]; then 135 | if [[ "$warn_missing_arch" == "true" ]]; then 136 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 137 | fi 138 | STRIP_BINARY_RETVAL=1 139 | return 140 | fi 141 | stripped="" 142 | for arch in $binary_archs; do 143 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 144 | # Strip non-valid architectures in-place 145 | lipo -remove "$arch" -output "$binary" "$binary" 146 | stripped="$stripped $arch" 147 | fi 148 | done 149 | if [[ "$stripped" ]]; then 150 | echo "Stripped $binary of architectures:$stripped" 151 | fi 152 | STRIP_BINARY_RETVAL=0 153 | } 154 | 155 | # Copies the bcsymbolmap files of a vendored framework 156 | install_bcsymbolmap() { 157 | local bcsymbolmap_path="$1" 158 | local destination="${BUILT_PRODUCTS_DIR}" 159 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 160 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 161 | } 162 | 163 | # Signs a framework with the provided identity 164 | code_sign_if_enabled() { 165 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 166 | # Use the current code_sign_identity 167 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 168 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 169 | 170 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 171 | code_sign_cmd="$code_sign_cmd &" 172 | fi 173 | echo "$code_sign_cmd" 174 | eval "$code_sign_cmd" 175 | fi 176 | } 177 | 178 | if [[ "$CONFIGURATION" == "Debug" ]]; then 179 | install_framework "${BUILT_PRODUCTS_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework" 180 | fi 181 | if [[ "$CONFIGURATION" == "Release" ]]; then 182 | install_framework "${BUILT_PRODUCTS_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework" 183 | fi 184 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 185 | wait 186 | fi 187 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink -f "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 99 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 113 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 114 | else 115 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 116 | mkdir -p "${DWARF_DSYM_FOLDER_PATH}" 117 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 118 | fi 119 | fi 120 | } 121 | 122 | # Used as a return value for each invocation of `strip_invalid_archs` function. 123 | STRIP_BINARY_RETVAL=0 124 | 125 | # Strip invalid architectures 126 | strip_invalid_archs() { 127 | binary="$1" 128 | warn_missing_arch=${2:-true} 129 | # Get architectures for current target binary 130 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 131 | # Intersect them with the architectures we are building for 132 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 133 | # If there are no archs supported by this binary then warn the user 134 | if [[ -z "$intersected_archs" ]]; then 135 | if [[ "$warn_missing_arch" == "true" ]]; then 136 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 137 | fi 138 | STRIP_BINARY_RETVAL=1 139 | return 140 | fi 141 | stripped="" 142 | for arch in $binary_archs; do 143 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 144 | # Strip non-valid architectures in-place 145 | lipo -remove "$arch" -output "$binary" "$binary" 146 | stripped="$stripped $arch" 147 | fi 148 | done 149 | if [[ "$stripped" ]]; then 150 | echo "Stripped $binary of architectures:$stripped" 151 | fi 152 | STRIP_BINARY_RETVAL=0 153 | } 154 | 155 | # Copies the bcsymbolmap files of a vendored framework 156 | install_bcsymbolmap() { 157 | local bcsymbolmap_path="$1" 158 | local destination="${BUILT_PRODUCTS_DIR}" 159 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 160 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 161 | } 162 | 163 | # Signs a framework with the provided identity 164 | code_sign_if_enabled() { 165 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 166 | # Use the current code_sign_identity 167 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 168 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 169 | 170 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 171 | code_sign_cmd="$code_sign_cmd &" 172 | fi 173 | echo "$code_sign_cmd" 174 | eval "$code_sign_cmd" 175 | fi 176 | } 177 | 178 | if [[ "$CONFIGURATION" == "Debug" ]]; then 179 | install_framework "${BUILT_PRODUCTS_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework" 180 | fi 181 | if [[ "$CONFIGURATION" == "Release" ]]; then 182 | install_framework "${BUILT_PRODUCTS_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework" 183 | fi 184 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 185 | wait 186 | fi 187 | -------------------------------------------------------------------------------- /Pod/Classes/AutoCompleteTextField.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AutoCompleteTextField.swift 3 | // Pods 4 | // 5 | // Created by Neil Francis Hipona on 19/03/2016. 6 | // Copyright (c) 2016 Neil Francis Ramirez Hipona. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | 13 | public class AutoCompleteTextField: UITextField { 14 | 15 | /// AutoCompleteTextField data source 16 | weak public var dataSource: ACTFDataSource? 17 | /// AutoCompleteTextField optional notifier delegate 18 | weak public var actfDelegate: ACTFDelegate? 19 | 20 | /// AutoCompleteTextField data source accessible through IB 21 | @IBOutlet weak internal var _actfDataSource: AnyObject? { 22 | didSet { 23 | dataSource = _actfDataSource as? ACTFDataSource 24 | } 25 | } 26 | 27 | /// AutoCompleteTextField data source accessible through IB 28 | @IBOutlet weak internal var _actfDelegate: AnyObject? { 29 | didSet { 30 | actfDelegate = _actfDelegate as? ACTFDelegate 31 | } 32 | } 33 | 34 | fileprivate var actfLabel: ACTFLabel! 35 | fileprivate var delimiter: CharacterSet? 36 | 37 | fileprivate var xOffsetCorrection: CGFloat { 38 | get { 39 | switch borderStyle { 40 | case .bezel, .roundedRect: 41 | return 6.0 42 | case .line: 43 | return 1.0 44 | 45 | default: 46 | return 0.0 47 | } 48 | } 49 | } 50 | 51 | fileprivate var yOffsetCorrection: CGFloat { 52 | get { 53 | switch borderStyle { 54 | case .line, .roundedRect: 55 | return 0.5 56 | 57 | default: 58 | return 0.0 59 | } 60 | } 61 | } 62 | 63 | /// Auto completion flag 64 | public var autoCompleteDisabled: Bool = false 65 | 66 | /// Case search 67 | public var ignoreCase: Bool = true 68 | 69 | /// Randomize suggestion flag. Default to ``false, will always use first found suggestion 70 | public var isRandomSuggestion: Bool = false 71 | 72 | /// Supported domain names 73 | static public let domainNames: [ACTFDomain] = { 74 | return SupportedDomainNames 75 | }() 76 | 77 | /// Text font settings 78 | override public var font: UIFont? { 79 | didSet { actfLabel.font = font } 80 | } 81 | 82 | public var suggestionColor: UIColor? { 83 | didSet { 84 | actfLabel.textColor = suggestionColor 85 | } 86 | } 87 | 88 | // MARK: - Initialization 89 | 90 | override fileprivate init(frame: CGRect) { 91 | super.init(frame: frame) 92 | 93 | prepareLayers() 94 | setupTargetObserver() 95 | } 96 | 97 | required public init?(coder aDecoder: NSCoder) { 98 | super.init(coder: aDecoder) 99 | 100 | prepareLayers() 101 | setupTargetObserver() 102 | } 103 | 104 | /// Initialize `AutoCompleteTextField` with `AutoCompleteTextFieldDataSource` and optional `AutoCompleteTextFieldDelegate` 105 | convenience public init(frame: CGRect, dataSource source: ACTFDataSource? = nil, delegate d: UITextFieldDelegate? = nil) { 106 | self.init(frame: frame) 107 | 108 | dataSource = source 109 | delegate = d 110 | 111 | prepareLayers() 112 | setupTargetObserver() 113 | } 114 | 115 | override public func awakeFromNib() { 116 | super.awakeFromNib() 117 | 118 | prepareLayers() 119 | setupTargetObserver() 120 | } 121 | 122 | // MARK: - Responders 123 | 124 | override public func becomeFirstResponder() -> Bool { 125 | let becomeFirstResponder = super.becomeFirstResponder() 126 | 127 | if !autoCompleteDisabled { 128 | actfLabel.isHidden = false 129 | 130 | if clearsOnBeginEditing { 131 | actfLabel.text = "" 132 | } 133 | 134 | processAutoCompleteEvent() 135 | } 136 | 137 | return becomeFirstResponder 138 | } 139 | 140 | override public func resignFirstResponder() -> Bool { 141 | let resignFirstResponder = super.resignFirstResponder() 142 | 143 | if !autoCompleteDisabled { 144 | actfLabel.isHidden = true 145 | 146 | commitAutocompleteText() 147 | } 148 | 149 | return resignFirstResponder 150 | } 151 | 152 | // MARK: - Private Funtions 153 | 154 | fileprivate func prepareLayers() { 155 | 156 | actfLabel = ACTFLabel(frame: .zero) 157 | addSubview(actfLabel) 158 | 159 | actfLabel.font = font 160 | actfLabel.backgroundColor = .clear 161 | actfLabel.textColor = .lightGray 162 | actfLabel.lineBreakMode = .byClipping 163 | actfLabel.baselineAdjustment = .alignCenters 164 | actfLabel.isHidden = true 165 | } 166 | 167 | fileprivate func setupTargetObserver() { 168 | 169 | addTarget(self, action: #selector(autoCompleteTextFieldDidChanged(_:)), for: .editingChanged) 170 | } 171 | 172 | fileprivate func performDomainSuggestionsSearch(_ queryString: String) -> ACTFDomain? { 173 | 174 | guard let dataSource else { return processSourceData(SupportedDomainNames, queryString: queryString) } 175 | let sourceData = dataSource.autoCompleteTextFieldDataSource(self) 176 | 177 | return processSourceData(sourceData, queryString: queryString) 178 | } 179 | 180 | fileprivate func processSourceData(_ dataSource: [ACTFDomain], queryString: String) -> ACTFDomain? { 181 | 182 | let stringFilter = ignoreCase ? queryString.lowercased() : queryString 183 | let suggestedDomains = dataSource.filter { (domain) -> Bool in 184 | if ignoreCase { 185 | return domain.text.lowercased().hasPrefix(stringFilter) 186 | }else{ 187 | return domain.text.hasPrefix(stringFilter) 188 | } 189 | } 190 | 191 | if suggestedDomains.isEmpty { 192 | return nil 193 | } 194 | 195 | if isRandomSuggestion { 196 | let maxCount = suggestedDomains.count 197 | let randomIdx = arc4random_uniform(UInt32(maxCount)) 198 | let suggestedDomain = suggestedDomains[Int(randomIdx)] 199 | 200 | return suggestedDomain 201 | }else{ 202 | 203 | guard let suggestedDomain = suggestedDomains.sorted(by: { (domain1, domain2) -> Bool in 204 | return domain1.weight > domain2.weight && domain1.text < domain2.text 205 | }).first else { return nil } 206 | 207 | return suggestedDomain 208 | } 209 | } 210 | 211 | fileprivate func performTextCull(domain: ACTFDomain, stringFilter: String) -> String { 212 | guard let filterRange = ignoreCase ? domain.text.lowercased().range(of: stringFilter) : domain.text.range(of: stringFilter) else { return "" } 213 | 214 | let culledString = domain.text.replacingCharacters(in: filterRange, with: "") 215 | return culledString 216 | } 217 | 218 | fileprivate func actfBoundingRect(_ autocompleteString: String) -> CGRect { 219 | 220 | // get bounds for whole text area 221 | let textRectBounds = textRect(forBounds: bounds) 222 | 223 | // get rect for actual text 224 | guard let textRange = textRange(from: beginningOfDocument, to: endOfDocument) else { return .zero } 225 | 226 | let tRect = firstRect(for: textRange).integral 227 | 228 | let paragraphStyle = NSMutableParagraphStyle() 229 | paragraphStyle.lineBreakMode = .byCharWrapping 230 | 231 | let textAttributes: [NSAttributedString.Key: Any] = [.font: font!, .paragraphStyle: paragraphStyle] 232 | 233 | let drawingOptions: NSStringDrawingOptions = [.usesLineFragmentOrigin, .usesFontLeading] 234 | 235 | let prefixTextRect = (text ?? "").boundingRect(with: textRectBounds.size, options: drawingOptions, attributes: textAttributes, context: nil) 236 | 237 | let autoCompleteRectSize = CGSize(width: textRectBounds.width - prefixTextRect.width, height: textRectBounds.height) 238 | let autoCompleteTextRect = autocompleteString.boundingRect(with: autoCompleteRectSize, options: drawingOptions, attributes: textAttributes, context: nil) 239 | 240 | let xOrigin = tRect.maxX + xOffsetCorrection 241 | let actfLabelFrame = actfLabel.frame 242 | let finalX = xOrigin + autoCompleteTextRect.width 243 | let finalY = textRectBounds.minY + ((textRectBounds.height - actfLabelFrame.height) / 2) - yOffsetCorrection 244 | 245 | if finalX >= textRectBounds.width { 246 | let autoCompleteRect = CGRect(x: textRectBounds.width, y: finalY, width: 0, height: actfLabelFrame.height) 247 | 248 | return autoCompleteRect 249 | }else{ 250 | let autoCompleteRect = CGRect(x: xOrigin, y: finalY, width: autoCompleteTextRect.width, height: actfLabelFrame.height) 251 | 252 | return autoCompleteRect 253 | } 254 | } 255 | 256 | fileprivate func processAutoCompleteEvent() { 257 | if autoCompleteDisabled { return } 258 | 259 | guard let text, text.count > 0 else { return } 260 | 261 | if let delimiter { 262 | guard let _ = text.rangeOfCharacter(from: delimiter) else { return } 263 | 264 | let textComponents = text.components(separatedBy: delimiter) 265 | 266 | if textComponents.count > 2 { return } 267 | 268 | guard let textToLookFor = textComponents.last else { return } 269 | 270 | let domain = performDomainSuggestionsSearch(textToLookFor) 271 | updateAutocompleteLabel(domain: domain, originalString: textToLookFor) 272 | }else{ 273 | let domain = performDomainSuggestionsSearch(text) 274 | updateAutocompleteLabel(domain: domain, originalString: text) 275 | } 276 | } 277 | 278 | fileprivate func updateAutocompleteLabel(domain: ACTFDomain?, originalString stringFilter: String) { 279 | 280 | guard let domain else { 281 | actfLabel.text = "" 282 | actfLabel.sizeToFit() 283 | 284 | return 285 | } 286 | 287 | let culledString = performTextCull(domain: domain, stringFilter: stringFilter) 288 | 289 | actfLabel.domain = domain 290 | actfLabel.text = culledString 291 | actfLabel.sizeToFit() 292 | actfLabel.frame = actfBoundingRect(culledString) 293 | } 294 | 295 | fileprivate func commitAutocompleteText() { 296 | guard let autoCompleteString = actfLabel.text , !autoCompleteString.isEmpty else { return } 297 | let originalInputString = text ?? "" 298 | 299 | actfLabel.text = "" 300 | actfLabel.sizeToFit() 301 | actfLabel.domain.updateWeightUsage() 302 | 303 | if let actfDelegate { 304 | actfDelegate.autoCompleteTextField(self, didSuggestDomain: actfLabel.domain) 305 | } 306 | 307 | actfLabel.domain = nil 308 | text = originalInputString + autoCompleteString 309 | sendActions(for: .valueChanged) 310 | } 311 | } 312 | 313 | // MARK: - Internal Controls 314 | 315 | extension AutoCompleteTextField { 316 | 317 | @objc internal func autoCompleteButtonDidTapped(_ sender: UIButton) { 318 | endEditing(true) 319 | 320 | commitAutocompleteText() 321 | } 322 | 323 | @objc internal func autoCompleteTextFieldDidChanged(_ textField: UITextField) { 324 | 325 | if !autoCompleteDisabled { 326 | processAutoCompleteEvent() 327 | } 328 | } 329 | } 330 | 331 | // MARK: - Public Controls 332 | 333 | extension AutoCompleteTextField { 334 | 335 | /// Set delimiter. Will perform search if delimiter is found 336 | public func setDelimiter(_ delimiterString: String) { 337 | delimiter = CharacterSet(charactersIn: delimiterString) 338 | } 339 | 340 | /// Show complete button with custom image 341 | public func showAutoCompleteButtonWithImage(_ image: UIImage? = UIImage(named: "checked", in: Bundle(for: AutoCompleteTextField.self), compatibleWith: nil), viewMode: AutoCompleteButtonViewMode) { 342 | 343 | var buttonFrameH: CGFloat = 0.0 344 | var buttonOriginY: CGFloat = 0.0 345 | 346 | if frame.height > DefaultButtonHeight { 347 | buttonFrameH = DefaultButtonHeight 348 | buttonOriginY = (frame.height - DefaultButtonHeight) / 2 349 | }else{ 350 | buttonFrameH = frame.height 351 | buttonOriginY = 0 352 | } 353 | 354 | let buttonFrame = CGRect(x: 0, y: buttonOriginY, width: DefaultButtonWidth, height: buttonFrameH) 355 | let autoCompleteButton = UIButton(frame: buttonFrame) 356 | autoCompleteButton.setImage(image, for: .normal) 357 | autoCompleteButton.addTarget(self, action: #selector(autoCompleteButtonDidTapped(_:)), for: .touchUpInside) 358 | 359 | let containerFrame = CGRect(x: 0, y: 0, width: DefaultButtonWidth, height: frame.height) 360 | let autoCompleteButtonContainerView = UIView(frame: containerFrame) 361 | autoCompleteButtonContainerView.addSubview(autoCompleteButton) 362 | 363 | rightView = autoCompleteButtonContainerView 364 | rightViewMode = viewMode 365 | } 366 | 367 | /// Force text completion event 368 | public func forceRefresh() { 369 | 370 | processAutoCompleteEvent() 371 | } 372 | } 373 | -------------------------------------------------------------------------------- /Example/AutoCompleteTextField.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 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 12 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 13 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 14 | ABDF83E6E58C5C6FF7B5CCDA /* Pods_AutoCompleteTextField_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A82E6B4A3D20876386FFF0B7 /* Pods_AutoCompleteTextField_Tests.framework */; }; 15 | BA29EC6CFD2ED0B92F3448C6 /* Pods_AutoCompleteTextField_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17C5301B585551C53ECD4DD3 /* Pods_AutoCompleteTextField_Example.framework */; }; 16 | C2CA15C81D41CB0800D1ADCB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2CA15C71D41CB0800D1ADCB /* ViewController.swift */; }; 17 | C2CA15CA1D41CB1400D1ADCB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C2CA15C91D41CB1400D1ADCB /* Main.storyboard */; }; 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 = AutoCompleteTextField; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 17C5301B585551C53ECD4DD3 /* Pods_AutoCompleteTextField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AutoCompleteTextField_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 5D4E64DDFCD5C145C5ED8141 /* AutoCompleteTextField.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = AutoCompleteTextField.podspec; path = ../AutoCompleteTextField.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 33 | 607FACD01AFB9204008FA782 /* AutoCompleteTextField_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AutoCompleteTextField_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 37 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 38 | 607FACE51AFB9204008FA782 /* AutoCompleteTextField_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AutoCompleteTextField_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 41 | 651D3C0C3080C0E54BC0ED3B /* Pods-AutoCompleteTextField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutoCompleteTextField_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example.release.xcconfig"; sourceTree = ""; }; 42 | 71924159757F4AB9DC2ED095 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 43 | 726789C5EAA36CFFB463E190 /* Pods-AutoCompleteTextField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutoCompleteTextField_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests.debug.xcconfig"; sourceTree = ""; }; 44 | A82E6B4A3D20876386FFF0B7 /* Pods_AutoCompleteTextField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AutoCompleteTextField_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | C2CA15C71D41CB0800D1ADCB /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 46 | C2CA15C91D41CB1400D1ADCB /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 47 | E84DB578C3FFC175EE2EBDA1 /* Pods-AutoCompleteTextField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutoCompleteTextField_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example.debug.xcconfig"; sourceTree = ""; }; 48 | EA229FEBCDD2B6088C57EF39 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 49 | F457A2F76CC4C18A939B3148 /* Pods-AutoCompleteTextField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutoCompleteTextField_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | BA29EC6CFD2ED0B92F3448C6 /* Pods_AutoCompleteTextField_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ABDF83E6E58C5C6FF7B5CCDA /* Pods_AutoCompleteTextField_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 AutoCompleteTextField */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | E0F765F18B6C91499729E570 /* Pods */, 80 | DE71ED6CB6666C99AC6AB1AD /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* AutoCompleteTextField_Example.app */, 88 | 607FACE51AFB9204008FA782 /* AutoCompleteTextField_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for AutoCompleteTextField */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 97 | C2CA15C71D41CB0800D1ADCB /* ViewController.swift */, 98 | C2CA15C91D41CB1400D1ADCB /* Main.storyboard */, 99 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 100 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for AutoCompleteTextField"; 104 | path = AutoCompleteTextField; 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 | 5D4E64DDFCD5C145C5ED8141 /* AutoCompleteTextField.podspec */, 136 | EA229FEBCDD2B6088C57EF39 /* README.md */, 137 | 71924159757F4AB9DC2ED095 /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | DE71ED6CB6666C99AC6AB1AD /* Frameworks */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 17C5301B585551C53ECD4DD3 /* Pods_AutoCompleteTextField_Example.framework */, 146 | A82E6B4A3D20876386FFF0B7 /* Pods_AutoCompleteTextField_Tests.framework */, 147 | ); 148 | name = Frameworks; 149 | sourceTree = ""; 150 | }; 151 | E0F765F18B6C91499729E570 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | E84DB578C3FFC175EE2EBDA1 /* Pods-AutoCompleteTextField_Example.debug.xcconfig */, 155 | 651D3C0C3080C0E54BC0ED3B /* Pods-AutoCompleteTextField_Example.release.xcconfig */, 156 | 726789C5EAA36CFFB463E190 /* Pods-AutoCompleteTextField_Tests.debug.xcconfig */, 157 | F457A2F76CC4C18A939B3148 /* Pods-AutoCompleteTextField_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* AutoCompleteTextField_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AutoCompleteTextField_Example" */; 168 | buildPhases = ( 169 | DD2B5928BB6077DF5EC67C3D /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 4F68BF06E54AF92B55818114 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = AutoCompleteTextField_Example; 180 | productName = AutoCompleteTextField; 181 | productReference = 607FACD01AFB9204008FA782 /* AutoCompleteTextField_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* AutoCompleteTextField_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AutoCompleteTextField_Tests" */; 187 | buildPhases = ( 188 | DB08AEDA9CFBD60D37321778 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | 4F88CD25DFEAAA60C3F6BDB1 /* [CP] Embed Pods Frameworks */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 198 | ); 199 | name = AutoCompleteTextField_Tests; 200 | productName = Tests; 201 | productReference = 607FACE51AFB9204008FA782 /* AutoCompleteTextField_Tests.xctest */; 202 | productType = "com.apple.product-type.bundle.unit-test"; 203 | }; 204 | /* End PBXNativeTarget section */ 205 | 206 | /* Begin PBXProject section */ 207 | 607FACC81AFB9204008FA782 /* Project object */ = { 208 | isa = PBXProject; 209 | attributes = { 210 | LastSwiftUpdateCheck = 0720; 211 | LastUpgradeCheck = 1140; 212 | ORGANIZATIONNAME = CocoaPods; 213 | TargetAttributes = { 214 | 607FACCF1AFB9204008FA782 = { 215 | CreatedOnToolsVersion = 6.3.1; 216 | DevelopmentTeam = RKF34AM7UT; 217 | LastSwiftMigration = 1010; 218 | }; 219 | 607FACE41AFB9204008FA782 = { 220 | CreatedOnToolsVersion = 6.3.1; 221 | DevelopmentTeam = RKF34AM7UT; 222 | LastSwiftMigration = 1010; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AutoCompleteTextField" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | English, 233 | en, 234 | Base, 235 | ); 236 | mainGroup = 607FACC71AFB9204008FA782; 237 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 238 | projectDirPath = ""; 239 | projectRoot = ""; 240 | targets = ( 241 | 607FACCF1AFB9204008FA782 /* AutoCompleteTextField_Example */, 242 | 607FACE41AFB9204008FA782 /* AutoCompleteTextField_Tests */, 243 | ); 244 | }; 245 | /* End PBXProject section */ 246 | 247 | /* Begin PBXResourcesBuildPhase section */ 248 | 607FACCE1AFB9204008FA782 /* Resources */ = { 249 | isa = PBXResourcesBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | C2CA15CA1D41CB1400D1ADCB /* Main.storyboard in Resources */, 253 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 254 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | 607FACE31AFB9204008FA782 /* Resources */ = { 259 | isa = PBXResourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | /* End PBXResourcesBuildPhase section */ 266 | 267 | /* Begin PBXShellScriptBuildPhase section */ 268 | 4F68BF06E54AF92B55818114 /* [CP] Embed Pods Frameworks */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputPaths = ( 274 | "${PODS_ROOT}/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-frameworks.sh", 275 | "${BUILT_PRODUCTS_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework", 276 | ); 277 | name = "[CP] Embed Pods Frameworks"; 278 | outputPaths = ( 279 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AutoCompleteTextField.framework", 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-frameworks.sh\"\n"; 284 | showEnvVarsInLog = 0; 285 | }; 286 | 4F88CD25DFEAAA60C3F6BDB1 /* [CP] Embed Pods Frameworks */ = { 287 | isa = PBXShellScriptBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | ); 291 | inputPaths = ( 292 | "${PODS_ROOT}/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-frameworks.sh", 293 | "${BUILT_PRODUCTS_DIR}/AutoCompleteTextField/AutoCompleteTextField.framework", 294 | ); 295 | name = "[CP] Embed Pods Frameworks"; 296 | outputPaths = ( 297 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AutoCompleteTextField.framework", 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | shellPath = /bin/sh; 301 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-frameworks.sh\"\n"; 302 | showEnvVarsInLog = 0; 303 | }; 304 | DB08AEDA9CFBD60D37321778 /* [CP] Check Pods Manifest.lock */ = { 305 | isa = PBXShellScriptBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | ); 309 | inputPaths = ( 310 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 311 | "${PODS_ROOT}/Manifest.lock", 312 | ); 313 | name = "[CP] Check Pods Manifest.lock"; 314 | outputPaths = ( 315 | "$(DERIVED_FILE_DIR)/Pods-AutoCompleteTextField_Tests-checkManifestLockResult.txt", 316 | ); 317 | runOnlyForDeploymentPostprocessing = 0; 318 | shellPath = /bin/sh; 319 | 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"; 320 | showEnvVarsInLog = 0; 321 | }; 322 | DD2B5928BB6077DF5EC67C3D /* [CP] Check Pods Manifest.lock */ = { 323 | isa = PBXShellScriptBuildPhase; 324 | buildActionMask = 2147483647; 325 | files = ( 326 | ); 327 | inputPaths = ( 328 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 329 | "${PODS_ROOT}/Manifest.lock", 330 | ); 331 | name = "[CP] Check Pods Manifest.lock"; 332 | outputPaths = ( 333 | "$(DERIVED_FILE_DIR)/Pods-AutoCompleteTextField_Example-checkManifestLockResult.txt", 334 | ); 335 | runOnlyForDeploymentPostprocessing = 0; 336 | shellPath = /bin/sh; 337 | 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"; 338 | showEnvVarsInLog = 0; 339 | }; 340 | /* End PBXShellScriptBuildPhase section */ 341 | 342 | /* Begin PBXSourcesBuildPhase section */ 343 | 607FACCC1AFB9204008FA782 /* Sources */ = { 344 | isa = PBXSourcesBuildPhase; 345 | buildActionMask = 2147483647; 346 | files = ( 347 | C2CA15C81D41CB0800D1ADCB /* ViewController.swift in Sources */, 348 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | 607FACE11AFB9204008FA782 /* Sources */ = { 353 | isa = PBXSourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | /* End PBXSourcesBuildPhase section */ 361 | 362 | /* Begin PBXTargetDependency section */ 363 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 364 | isa = PBXTargetDependency; 365 | target = 607FACCF1AFB9204008FA782 /* AutoCompleteTextField_Example */; 366 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 367 | }; 368 | /* End PBXTargetDependency section */ 369 | 370 | /* Begin PBXVariantGroup section */ 371 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 372 | isa = PBXVariantGroup; 373 | children = ( 374 | 607FACDF1AFB9204008FA782 /* Base */, 375 | ); 376 | name = LaunchScreen.xib; 377 | sourceTree = ""; 378 | }; 379 | /* End PBXVariantGroup section */ 380 | 381 | /* Begin XCBuildConfiguration section */ 382 | 607FACED1AFB9204008FA782 /* Debug */ = { 383 | isa = XCBuildConfiguration; 384 | buildSettings = { 385 | ALWAYS_SEARCH_USER_PATHS = NO; 386 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 387 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 388 | CLANG_CXX_LIBRARY = "libc++"; 389 | CLANG_ENABLE_MODULES = YES; 390 | CLANG_ENABLE_OBJC_ARC = YES; 391 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 392 | CLANG_WARN_BOOL_CONVERSION = YES; 393 | CLANG_WARN_COMMA = YES; 394 | CLANG_WARN_CONSTANT_CONVERSION = YES; 395 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 396 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 397 | CLANG_WARN_EMPTY_BODY = YES; 398 | CLANG_WARN_ENUM_CONVERSION = YES; 399 | CLANG_WARN_INFINITE_RECURSION = YES; 400 | CLANG_WARN_INT_CONVERSION = YES; 401 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 402 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 403 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 404 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 405 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 406 | CLANG_WARN_STRICT_PROTOTYPES = YES; 407 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 408 | CLANG_WARN_UNREACHABLE_CODE = YES; 409 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 410 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 411 | COPY_PHASE_STRIP = NO; 412 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 413 | ENABLE_STRICT_OBJC_MSGSEND = YES; 414 | ENABLE_TESTABILITY = YES; 415 | GCC_C_LANGUAGE_STANDARD = gnu99; 416 | GCC_DYNAMIC_NO_PIC = NO; 417 | GCC_NO_COMMON_BLOCKS = YES; 418 | GCC_OPTIMIZATION_LEVEL = 0; 419 | GCC_PREPROCESSOR_DEFINITIONS = ( 420 | "DEBUG=1", 421 | "$(inherited)", 422 | ); 423 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 431 | MTL_ENABLE_DEBUG_INFO = YES; 432 | ONLY_ACTIVE_ARCH = YES; 433 | SDKROOT = iphoneos; 434 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 435 | }; 436 | name = Debug; 437 | }; 438 | 607FACEE1AFB9204008FA782 /* Release */ = { 439 | isa = XCBuildConfiguration; 440 | buildSettings = { 441 | ALWAYS_SEARCH_USER_PATHS = NO; 442 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 443 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 444 | CLANG_CXX_LIBRARY = "libc++"; 445 | CLANG_ENABLE_MODULES = YES; 446 | CLANG_ENABLE_OBJC_ARC = YES; 447 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 448 | CLANG_WARN_BOOL_CONVERSION = YES; 449 | CLANG_WARN_COMMA = YES; 450 | CLANG_WARN_CONSTANT_CONVERSION = YES; 451 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 452 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 453 | CLANG_WARN_EMPTY_BODY = YES; 454 | CLANG_WARN_ENUM_CONVERSION = YES; 455 | CLANG_WARN_INFINITE_RECURSION = YES; 456 | CLANG_WARN_INT_CONVERSION = YES; 457 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 459 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 460 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 467 | COPY_PHASE_STRIP = NO; 468 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 469 | ENABLE_NS_ASSERTIONS = NO; 470 | ENABLE_STRICT_OBJC_MSGSEND = YES; 471 | GCC_C_LANGUAGE_STANDARD = gnu99; 472 | GCC_NO_COMMON_BLOCKS = YES; 473 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 474 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 475 | GCC_WARN_UNDECLARED_SELECTOR = YES; 476 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 477 | GCC_WARN_UNUSED_FUNCTION = YES; 478 | GCC_WARN_UNUSED_VARIABLE = YES; 479 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 480 | MTL_ENABLE_DEBUG_INFO = NO; 481 | SDKROOT = iphoneos; 482 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 483 | VALIDATE_PRODUCT = YES; 484 | }; 485 | name = Release; 486 | }; 487 | 607FACF01AFB9204008FA782 /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | baseConfigurationReference = E84DB578C3FFC175EE2EBDA1 /* Pods-AutoCompleteTextField_Example.debug.xcconfig */; 490 | buildSettings = { 491 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)"; 492 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 493 | DEVELOPMENT_TEAM = RKF34AM7UT; 494 | INFOPLIST_FILE = AutoCompleteTextField/Info.plist; 495 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 496 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 497 | MODULE_NAME = ExampleApp; 498 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 499 | PRODUCT_NAME = "$(TARGET_NAME)"; 500 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 501 | SWIFT_VERSION = 5.0; 502 | }; 503 | name = Debug; 504 | }; 505 | 607FACF11AFB9204008FA782 /* Release */ = { 506 | isa = XCBuildConfiguration; 507 | baseConfigurationReference = 651D3C0C3080C0E54BC0ED3B /* Pods-AutoCompleteTextField_Example.release.xcconfig */; 508 | buildSettings = { 509 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)"; 510 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 511 | DEVELOPMENT_TEAM = RKF34AM7UT; 512 | INFOPLIST_FILE = AutoCompleteTextField/Info.plist; 513 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 515 | MODULE_NAME = ExampleApp; 516 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 517 | PRODUCT_NAME = "$(TARGET_NAME)"; 518 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 519 | SWIFT_VERSION = 5.0; 520 | }; 521 | name = Release; 522 | }; 523 | 607FACF31AFB9204008FA782 /* Debug */ = { 524 | isa = XCBuildConfiguration; 525 | baseConfigurationReference = 726789C5EAA36CFFB463E190 /* Pods-AutoCompleteTextField_Tests.debug.xcconfig */; 526 | buildSettings = { 527 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)"; 528 | BUNDLE_LOADER = "$(TEST_HOST)"; 529 | DEVELOPMENT_TEAM = RKF34AM7UT; 530 | FRAMEWORK_SEARCH_PATHS = ( 531 | "$(SDKROOT)/Developer/Library/Frameworks", 532 | "$(inherited)", 533 | ); 534 | GCC_PREPROCESSOR_DEFINITIONS = ( 535 | "DEBUG=1", 536 | "$(inherited)", 537 | ); 538 | INFOPLIST_FILE = Tests/Info.plist; 539 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 540 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 541 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 544 | SWIFT_VERSION = 5.0; 545 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AutoCompleteTextField_Example.app/AutoCompleteTextField_Example"; 546 | }; 547 | name = Debug; 548 | }; 549 | 607FACF41AFB9204008FA782 /* Release */ = { 550 | isa = XCBuildConfiguration; 551 | baseConfigurationReference = F457A2F76CC4C18A939B3148 /* Pods-AutoCompleteTextField_Tests.release.xcconfig */; 552 | buildSettings = { 553 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)"; 554 | BUNDLE_LOADER = "$(TEST_HOST)"; 555 | DEVELOPMENT_TEAM = RKF34AM7UT; 556 | FRAMEWORK_SEARCH_PATHS = ( 557 | "$(SDKROOT)/Developer/Library/Frameworks", 558 | "$(inherited)", 559 | ); 560 | INFOPLIST_FILE = Tests/Info.plist; 561 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 562 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 563 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 564 | PRODUCT_NAME = "$(TARGET_NAME)"; 565 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 566 | SWIFT_VERSION = 5.0; 567 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AutoCompleteTextField_Example.app/AutoCompleteTextField_Example"; 568 | }; 569 | name = Release; 570 | }; 571 | /* End XCBuildConfiguration section */ 572 | 573 | /* Begin XCConfigurationList section */ 574 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AutoCompleteTextField" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 607FACED1AFB9204008FA782 /* Debug */, 578 | 607FACEE1AFB9204008FA782 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AutoCompleteTextField_Example" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 607FACF01AFB9204008FA782 /* Debug */, 587 | 607FACF11AFB9204008FA782 /* Release */, 588 | ); 589 | defaultConfigurationIsVisible = 0; 590 | defaultConfigurationName = Release; 591 | }; 592 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AutoCompleteTextField_Tests" */ = { 593 | isa = XCConfigurationList; 594 | buildConfigurations = ( 595 | 607FACF31AFB9204008FA782 /* Debug */, 596 | 607FACF41AFB9204008FA782 /* Release */, 597 | ); 598 | defaultConfigurationIsVisible = 0; 599 | defaultConfigurationName = Release; 600 | }; 601 | /* End XCConfigurationList section */ 602 | }; 603 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 604 | } 605 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 53; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 065C10CF1D38F255CE1C0DC66A6EFE13 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 11 | 0CAF5E1D198BED3EA8C8425105053F07 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 12 | 4E871FC430DFD135FA2AAFF8A3A00532 /* ACTFConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 261D9EE165E17E1D62CEDD7E3731A272 /* ACTFConstants.swift */; }; 13 | 54E9D0504BDAEB49E3336550D9BFC5F2 /* ACTFDomain.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5944BC88B018BD26E8A25AF30C7CA158 /* ACTFDomain.swift */; }; 14 | 6EEDF79F2222CFAA7DE8E6E92320D210 /* Pods-AutoCompleteTextField_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 21C96A80A3022CB6CC00388CA3AF2C2F /* Pods-AutoCompleteTextField_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 736370830D0E803A202E81AF541BDE26 /* AutoCompleteTextField-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B06A91A109E157ABB01BD94164C82D8C /* AutoCompleteTextField-dummy.m */; }; 16 | 88385B359A78B5BDCE59D39A1836AADF /* AutoCompleteTextField-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = EA3CEDAC7EE6BF8D3C48E8A64DAFB0B7 /* AutoCompleteTextField-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 91F1CC68BB783E89D434D91B51ADEE94 /* Pods-AutoCompleteTextField_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D3664BE3B34267766E6AC86E697A2C19 /* Pods-AutoCompleteTextField_Example-dummy.m */; }; 18 | B0F8DD8EDE7A2A5235710EF40F6DD2EA /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FF059D2EF44814CA9B68B3B7CF3F6D62 /* Images.xcassets */; }; 19 | B34915E8CF88393D67E9BE172F9D3BDA /* ACTFLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDDC2D670074C3A9BA18C50B48768C8D /* ACTFLabel.swift */; }; 20 | BAD14D64534A31860D49B6971E0237B6 /* Pods-AutoCompleteTextField_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 758F0B166FA6CFFD362F805172281BC4 /* Pods-AutoCompleteTextField_Tests-dummy.m */; }; 21 | D3E5B89ECFDD63D8A364933B46D95721 /* AutoCompleteTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E9274D7BA478A19B5775FF3458A07B6 /* AutoCompleteTextField.swift */; }; 22 | DEA6C5D3A07CCD43B0D603DB24C08EBD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 23 | E0CB054C11F5C8F84B954EBA5B2F40DA /* ACTFProtocols.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C0A1D5774F8BC265C2A210DCB0B0B17 /* ACTFProtocols.swift */; }; 24 | F2BA31D2C1CB2744AFAE86CB13488315 /* Pods-AutoCompleteTextField_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DED106F6650C6925419715F830EB1C86 /* Pods-AutoCompleteTextField_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 11CB603D0593413726726C1168316A78 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = DC4A1A5AA982B1775A2698C96685730A; 33 | remoteInfo = AutoCompleteTextField; 34 | }; 35 | 953F654CA9C17A215B0960AEBEA15D43 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = DC4A1A5AA982B1775A2698C96685730A; 40 | remoteInfo = AutoCompleteTextField; 41 | }; 42 | /* End PBXContainerItemProxy section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | 12C92FA274E02D6AE95C77AAC9231DEF /* Pods-AutoCompleteTextField_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AutoCompleteTextField_Tests-Info.plist"; sourceTree = ""; }; 46 | 21267F9A24766F58C9158519BA82D446 /* Pods-AutoCompleteTextField_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AutoCompleteTextField_Tests.release.xcconfig"; sourceTree = ""; }; 47 | 21C96A80A3022CB6CC00388CA3AF2C2F /* Pods-AutoCompleteTextField_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AutoCompleteTextField_Tests-umbrella.h"; sourceTree = ""; }; 48 | 25FAED8A4011E36FB1B976690CAA5D3E /* Pods-AutoCompleteTextField_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AutoCompleteTextField_Example-frameworks.sh"; sourceTree = ""; }; 49 | 261D9EE165E17E1D62CEDD7E3731A272 /* ACTFConstants.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ACTFConstants.swift; path = Pod/Classes/ACTFConstants.swift; sourceTree = ""; }; 50 | 3893988862E8FBC5BB41312CCA49A524 /* Pods-AutoCompleteTextField_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AutoCompleteTextField_Example.release.xcconfig"; sourceTree = ""; }; 51 | 45486F7DA95AD6C3BB95CB4BA963B146 /* Pods-AutoCompleteTextField_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AutoCompleteTextField_Tests-acknowledgements.plist"; sourceTree = ""; }; 52 | 4C0A1D5774F8BC265C2A210DCB0B0B17 /* ACTFProtocols.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ACTFProtocols.swift; path = Pod/Classes/ACTFProtocols.swift; sourceTree = ""; }; 53 | 53F8B37EBEDAFD1CB6C26375833DCD06 /* Pods_AutoCompleteTextField_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AutoCompleteTextField_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 5944BC88B018BD26E8A25AF30C7CA158 /* ACTFDomain.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ACTFDomain.swift; path = Pod/Classes/ACTFDomain.swift; sourceTree = ""; }; 55 | 5D83C1674465C932A87A2F253EAAE788 /* AutoCompleteTextField-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AutoCompleteTextField-prefix.pch"; sourceTree = ""; }; 56 | 630BD95FB191198230FC73155058257A /* Pods-AutoCompleteTextField_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AutoCompleteTextField_Tests.debug.xcconfig"; sourceTree = ""; }; 57 | 699B7654D1E5A8C4F2EDFDBA602263E4 /* Pods-AutoCompleteTextField_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-AutoCompleteTextField_Tests.modulemap"; sourceTree = ""; }; 58 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 59 | 7572FF9A46449C3A9C1631EDA1B5FB01 /* Pods-AutoCompleteTextField_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AutoCompleteTextField_Tests-acknowledgements.markdown"; sourceTree = ""; }; 60 | 758F0B166FA6CFFD362F805172281BC4 /* Pods-AutoCompleteTextField_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AutoCompleteTextField_Tests-dummy.m"; sourceTree = ""; }; 61 | 76A49D532832A3F9FE1B6FAC5AAED0CC /* AutoCompleteTextField.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = AutoCompleteTextField.modulemap; sourceTree = ""; }; 62 | 82F701B56702AAC5509342EEF1D03EEE /* AutoCompleteTextField-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "AutoCompleteTextField-Info.plist"; sourceTree = ""; }; 63 | 997D66D3EBC80F768B2D49C8ADE421E8 /* AutoCompleteTextField.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AutoCompleteTextField.release.xcconfig; sourceTree = ""; }; 64 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 65 | 9E9274D7BA478A19B5775FF3458A07B6 /* AutoCompleteTextField.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AutoCompleteTextField.swift; path = Pod/Classes/AutoCompleteTextField.swift; sourceTree = ""; }; 66 | 9E9DFE326225AB7817E9B76A2B953150 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 67 | A2D8F8C47FC119BAD93DE61C6B980992 /* Pods-AutoCompleteTextField_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AutoCompleteTextField_Example-acknowledgements.plist"; sourceTree = ""; }; 68 | A76431A7684237D62FAB6E5F606BE38B /* Pods_AutoCompleteTextField_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AutoCompleteTextField_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | B06A91A109E157ABB01BD94164C82D8C /* AutoCompleteTextField-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AutoCompleteTextField-dummy.m"; sourceTree = ""; }; 70 | B0AEEDFA0B90D900E04CF03B425783EB /* Pods-AutoCompleteTextField_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AutoCompleteTextField_Example-Info.plist"; sourceTree = ""; }; 71 | B12ED6FCD39AE4B33A3D4C5A5DAF80E3 /* Pods-AutoCompleteTextField_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-AutoCompleteTextField_Example.modulemap"; sourceTree = ""; }; 72 | B2348140C5747D63EC21B843F8D4920A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 73 | BC73F54F606810EFD207C8CF5E3037C2 /* AutoCompleteTextField.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AutoCompleteTextField.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | D1A8483785E5F76D45C3C4B9810B7D1F /* AutoCompleteTextField.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AutoCompleteTextField.debug.xcconfig; sourceTree = ""; }; 75 | D3664BE3B34267766E6AC86E697A2C19 /* Pods-AutoCompleteTextField_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AutoCompleteTextField_Example-dummy.m"; sourceTree = ""; }; 76 | DE84505F707EB05FBAA36C09D9DE9923 /* Pods-AutoCompleteTextField_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AutoCompleteTextField_Tests-frameworks.sh"; sourceTree = ""; }; 77 | DED106F6650C6925419715F830EB1C86 /* Pods-AutoCompleteTextField_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AutoCompleteTextField_Example-umbrella.h"; sourceTree = ""; }; 78 | EA3CEDAC7EE6BF8D3C48E8A64DAFB0B7 /* AutoCompleteTextField-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AutoCompleteTextField-umbrella.h"; sourceTree = ""; }; 79 | EDA98910FE5C2EB27D7A7893C7CBC86F /* AutoCompleteTextField.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = AutoCompleteTextField.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 80 | F0719962507F4B7B15929E07F4D65AE7 /* Pods-AutoCompleteTextField_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AutoCompleteTextField_Example-acknowledgements.markdown"; sourceTree = ""; }; 81 | F9ADEBCB7D0E5C07F6E37635A197B865 /* Pods-AutoCompleteTextField_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AutoCompleteTextField_Example.debug.xcconfig"; sourceTree = ""; }; 82 | FDDC2D670074C3A9BA18C50B48768C8D /* ACTFLabel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ACTFLabel.swift; path = Pod/Classes/ACTFLabel.swift; sourceTree = ""; }; 83 | FF059D2EF44814CA9B68B3B7CF3F6D62 /* Images.xcassets */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Pod/Assets/Images.xcassets; sourceTree = ""; }; 84 | /* End PBXFileReference section */ 85 | 86 | /* Begin PBXFrameworksBuildPhase section */ 87 | 203542F4C4897370421BF3F26735AB15 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | 0CAF5E1D198BED3EA8C8425105053F07 /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | 4D077BDED28D468CBC6F15E488072C6C /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | DEA6C5D3A07CCD43B0D603DB24C08EBD /* Foundation.framework in Frameworks */, 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | 6E3DE6DD618E8DB885603A93E76899E1 /* Frameworks */ = { 104 | isa = PBXFrameworksBuildPhase; 105 | buildActionMask = 2147483647; 106 | files = ( 107 | 065C10CF1D38F255CE1C0DC66A6EFE13 /* Foundation.framework in Frameworks */, 108 | ); 109 | runOnlyForDeploymentPostprocessing = 0; 110 | }; 111 | /* End PBXFrameworksBuildPhase section */ 112 | 113 | /* Begin PBXGroup section */ 114 | 34A39E932823BF63440E610F7675448A /* Pod */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | EDA98910FE5C2EB27D7A7893C7CBC86F /* AutoCompleteTextField.podspec */, 118 | 9E9DFE326225AB7817E9B76A2B953150 /* LICENSE */, 119 | B2348140C5747D63EC21B843F8D4920A /* README.md */, 120 | ); 121 | name = Pod; 122 | sourceTree = ""; 123 | }; 124 | 4870BE6A88A1E83F92E376F5CC143E57 /* Development Pods */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | E476231356B081777BD267EC285B07B2 /* AutoCompleteTextField */, 128 | ); 129 | name = "Development Pods"; 130 | sourceTree = ""; 131 | }; 132 | 554AECD47CCF6C0F4ECA0953F0505035 /* Pods-AutoCompleteTextField_Example */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | B12ED6FCD39AE4B33A3D4C5A5DAF80E3 /* Pods-AutoCompleteTextField_Example.modulemap */, 136 | F0719962507F4B7B15929E07F4D65AE7 /* Pods-AutoCompleteTextField_Example-acknowledgements.markdown */, 137 | A2D8F8C47FC119BAD93DE61C6B980992 /* Pods-AutoCompleteTextField_Example-acknowledgements.plist */, 138 | D3664BE3B34267766E6AC86E697A2C19 /* Pods-AutoCompleteTextField_Example-dummy.m */, 139 | 25FAED8A4011E36FB1B976690CAA5D3E /* Pods-AutoCompleteTextField_Example-frameworks.sh */, 140 | B0AEEDFA0B90D900E04CF03B425783EB /* Pods-AutoCompleteTextField_Example-Info.plist */, 141 | DED106F6650C6925419715F830EB1C86 /* Pods-AutoCompleteTextField_Example-umbrella.h */, 142 | F9ADEBCB7D0E5C07F6E37635A197B865 /* Pods-AutoCompleteTextField_Example.debug.xcconfig */, 143 | 3893988862E8FBC5BB41312CCA49A524 /* Pods-AutoCompleteTextField_Example.release.xcconfig */, 144 | ); 145 | name = "Pods-AutoCompleteTextField_Example"; 146 | path = "Target Support Files/Pods-AutoCompleteTextField_Example"; 147 | sourceTree = ""; 148 | }; 149 | 578452D2E740E91742655AC8F1636D1F /* iOS */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, 153 | ); 154 | name = iOS; 155 | sourceTree = ""; 156 | }; 157 | 62A9EEE798C04A191878A2ABCC5EEA40 /* Targets Support Files */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 554AECD47CCF6C0F4ECA0953F0505035 /* Pods-AutoCompleteTextField_Example */, 161 | C3BE817F168BA1B8D120439DD2D42A42 /* Pods-AutoCompleteTextField_Tests */, 162 | ); 163 | name = "Targets Support Files"; 164 | sourceTree = ""; 165 | }; 166 | 9D5FD592A004A2AED3687C19B136A71E /* Support Files */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 76A49D532832A3F9FE1B6FAC5AAED0CC /* AutoCompleteTextField.modulemap */, 170 | B06A91A109E157ABB01BD94164C82D8C /* AutoCompleteTextField-dummy.m */, 171 | 82F701B56702AAC5509342EEF1D03EEE /* AutoCompleteTextField-Info.plist */, 172 | 5D83C1674465C932A87A2F253EAAE788 /* AutoCompleteTextField-prefix.pch */, 173 | EA3CEDAC7EE6BF8D3C48E8A64DAFB0B7 /* AutoCompleteTextField-umbrella.h */, 174 | D1A8483785E5F76D45C3C4B9810B7D1F /* AutoCompleteTextField.debug.xcconfig */, 175 | 997D66D3EBC80F768B2D49C8ADE421E8 /* AutoCompleteTextField.release.xcconfig */, 176 | ); 177 | name = "Support Files"; 178 | path = "Example/Pods/Target Support Files/AutoCompleteTextField"; 179 | sourceTree = ""; 180 | }; 181 | C3BE817F168BA1B8D120439DD2D42A42 /* Pods-AutoCompleteTextField_Tests */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 699B7654D1E5A8C4F2EDFDBA602263E4 /* Pods-AutoCompleteTextField_Tests.modulemap */, 185 | 7572FF9A46449C3A9C1631EDA1B5FB01 /* Pods-AutoCompleteTextField_Tests-acknowledgements.markdown */, 186 | 45486F7DA95AD6C3BB95CB4BA963B146 /* Pods-AutoCompleteTextField_Tests-acknowledgements.plist */, 187 | 758F0B166FA6CFFD362F805172281BC4 /* Pods-AutoCompleteTextField_Tests-dummy.m */, 188 | DE84505F707EB05FBAA36C09D9DE9923 /* Pods-AutoCompleteTextField_Tests-frameworks.sh */, 189 | 12C92FA274E02D6AE95C77AAC9231DEF /* Pods-AutoCompleteTextField_Tests-Info.plist */, 190 | 21C96A80A3022CB6CC00388CA3AF2C2F /* Pods-AutoCompleteTextField_Tests-umbrella.h */, 191 | 630BD95FB191198230FC73155058257A /* Pods-AutoCompleteTextField_Tests.debug.xcconfig */, 192 | 21267F9A24766F58C9158519BA82D446 /* Pods-AutoCompleteTextField_Tests.release.xcconfig */, 193 | ); 194 | name = "Pods-AutoCompleteTextField_Tests"; 195 | path = "Target Support Files/Pods-AutoCompleteTextField_Tests"; 196 | sourceTree = ""; 197 | }; 198 | CF1408CF629C7361332E53B88F7BD30C = { 199 | isa = PBXGroup; 200 | children = ( 201 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 202 | 4870BE6A88A1E83F92E376F5CC143E57 /* Development Pods */, 203 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 204 | D1F81993EA561E01593A1A63324FB6BF /* Products */, 205 | 62A9EEE798C04A191878A2ABCC5EEA40 /* Targets Support Files */, 206 | ); 207 | sourceTree = ""; 208 | }; 209 | D1F81993EA561E01593A1A63324FB6BF /* Products */ = { 210 | isa = PBXGroup; 211 | children = ( 212 | BC73F54F606810EFD207C8CF5E3037C2 /* AutoCompleteTextField.framework */, 213 | 53F8B37EBEDAFD1CB6C26375833DCD06 /* Pods_AutoCompleteTextField_Example.framework */, 214 | A76431A7684237D62FAB6E5F606BE38B /* Pods_AutoCompleteTextField_Tests.framework */, 215 | ); 216 | name = Products; 217 | sourceTree = ""; 218 | }; 219 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 220 | isa = PBXGroup; 221 | children = ( 222 | 578452D2E740E91742655AC8F1636D1F /* iOS */, 223 | ); 224 | name = Frameworks; 225 | sourceTree = ""; 226 | }; 227 | E476231356B081777BD267EC285B07B2 /* AutoCompleteTextField */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | 261D9EE165E17E1D62CEDD7E3731A272 /* ACTFConstants.swift */, 231 | 5944BC88B018BD26E8A25AF30C7CA158 /* ACTFDomain.swift */, 232 | FDDC2D670074C3A9BA18C50B48768C8D /* ACTFLabel.swift */, 233 | 4C0A1D5774F8BC265C2A210DCB0B0B17 /* ACTFProtocols.swift */, 234 | 9E9274D7BA478A19B5775FF3458A07B6 /* AutoCompleteTextField.swift */, 235 | FF059D2EF44814CA9B68B3B7CF3F6D62 /* Images.xcassets */, 236 | 34A39E932823BF63440E610F7675448A /* Pod */, 237 | 9D5FD592A004A2AED3687C19B136A71E /* Support Files */, 238 | ); 239 | name = AutoCompleteTextField; 240 | path = ../..; 241 | sourceTree = ""; 242 | }; 243 | /* End PBXGroup section */ 244 | 245 | /* Begin PBXHeadersBuildPhase section */ 246 | 1095B1A0D1AB93C2009CE85879AE7ADE /* Headers */ = { 247 | isa = PBXHeadersBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | F2BA31D2C1CB2744AFAE86CB13488315 /* Pods-AutoCompleteTextField_Example-umbrella.h in Headers */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 439B3623F6894DB22EC3EF39A0AA7979 /* Headers */ = { 255 | isa = PBXHeadersBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | 6EEDF79F2222CFAA7DE8E6E92320D210 /* Pods-AutoCompleteTextField_Tests-umbrella.h in Headers */, 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | 6BE14A7DD9E534CCD14F5E5E0A928D07 /* Headers */ = { 263 | isa = PBXHeadersBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | 88385B359A78B5BDCE59D39A1836AADF /* AutoCompleteTextField-umbrella.h in Headers */, 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | }; 270 | /* End PBXHeadersBuildPhase section */ 271 | 272 | /* Begin PBXNativeTarget section */ 273 | DC4A1A5AA982B1775A2698C96685730A /* AutoCompleteTextField */ = { 274 | isa = PBXNativeTarget; 275 | buildConfigurationList = 1016B9BB3ADD12E7A2C180F45DC1E581 /* Build configuration list for PBXNativeTarget "AutoCompleteTextField" */; 276 | buildPhases = ( 277 | 6BE14A7DD9E534CCD14F5E5E0A928D07 /* Headers */, 278 | F4D38082C848B3588E8588754EB39B2E /* Sources */, 279 | 4D077BDED28D468CBC6F15E488072C6C /* Frameworks */, 280 | 74828CA6EDED1086D75AFE28F298565F /* Resources */, 281 | ); 282 | buildRules = ( 283 | ); 284 | dependencies = ( 285 | ); 286 | name = AutoCompleteTextField; 287 | productName = AutoCompleteTextField; 288 | productReference = BC73F54F606810EFD207C8CF5E3037C2 /* AutoCompleteTextField.framework */; 289 | productType = "com.apple.product-type.framework"; 290 | }; 291 | DF206B3BA01423F122B63666478BA479 /* Pods-AutoCompleteTextField_Tests */ = { 292 | isa = PBXNativeTarget; 293 | buildConfigurationList = 4263F2D3BFD5FA5B29672BD711288DA3 /* Build configuration list for PBXNativeTarget "Pods-AutoCompleteTextField_Tests" */; 294 | buildPhases = ( 295 | 439B3623F6894DB22EC3EF39A0AA7979 /* Headers */, 296 | C2A2FE7E384658229AD128B464307CE9 /* Sources */, 297 | 203542F4C4897370421BF3F26735AB15 /* Frameworks */, 298 | B1A797D68CCB04F4425632906F55105F /* Resources */, 299 | ); 300 | buildRules = ( 301 | ); 302 | dependencies = ( 303 | C7459C90347026E63053110873FC9322 /* PBXTargetDependency */, 304 | ); 305 | name = "Pods-AutoCompleteTextField_Tests"; 306 | productName = Pods_AutoCompleteTextField_Tests; 307 | productReference = A76431A7684237D62FAB6E5F606BE38B /* Pods_AutoCompleteTextField_Tests.framework */; 308 | productType = "com.apple.product-type.framework"; 309 | }; 310 | F7411006DCFA4059EF9389515F0AFD24 /* Pods-AutoCompleteTextField_Example */ = { 311 | isa = PBXNativeTarget; 312 | buildConfigurationList = 99DD914449E0592745C4AC0577346620 /* Build configuration list for PBXNativeTarget "Pods-AutoCompleteTextField_Example" */; 313 | buildPhases = ( 314 | 1095B1A0D1AB93C2009CE85879AE7ADE /* Headers */, 315 | 5DDA7B5455D0CF33E0FD05501424B2FA /* Sources */, 316 | 6E3DE6DD618E8DB885603A93E76899E1 /* Frameworks */, 317 | DB3172282D8ACCB26793B6382F78C446 /* Resources */, 318 | ); 319 | buildRules = ( 320 | ); 321 | dependencies = ( 322 | 0E542D9B02CC5E4436A8932C6183CA4C /* PBXTargetDependency */, 323 | ); 324 | name = "Pods-AutoCompleteTextField_Example"; 325 | productName = Pods_AutoCompleteTextField_Example; 326 | productReference = 53F8B37EBEDAFD1CB6C26375833DCD06 /* Pods_AutoCompleteTextField_Example.framework */; 327 | productType = "com.apple.product-type.framework"; 328 | }; 329 | /* End PBXNativeTarget section */ 330 | 331 | /* Begin PBXProject section */ 332 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 333 | isa = PBXProject; 334 | attributes = { 335 | BuildIndependentTargetsInParallel = YES; 336 | LastSwiftUpdateCheck = 1300; 337 | LastUpgradeCheck = 1430; 338 | }; 339 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 340 | compatibilityVersion = "Xcode 3.2"; 341 | developmentRegion = en; 342 | hasScannedForEncodings = 0; 343 | knownRegions = ( 344 | Base, 345 | en, 346 | ); 347 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 348 | productRefGroup = D1F81993EA561E01593A1A63324FB6BF /* Products */; 349 | projectDirPath = ""; 350 | projectRoot = ""; 351 | targets = ( 352 | DC4A1A5AA982B1775A2698C96685730A /* AutoCompleteTextField */, 353 | F7411006DCFA4059EF9389515F0AFD24 /* Pods-AutoCompleteTextField_Example */, 354 | DF206B3BA01423F122B63666478BA479 /* Pods-AutoCompleteTextField_Tests */, 355 | ); 356 | }; 357 | /* End PBXProject section */ 358 | 359 | /* Begin PBXResourcesBuildPhase section */ 360 | 74828CA6EDED1086D75AFE28F298565F /* Resources */ = { 361 | isa = PBXResourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | B0F8DD8EDE7A2A5235710EF40F6DD2EA /* Images.xcassets in Resources */, 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | B1A797D68CCB04F4425632906F55105F /* Resources */ = { 369 | isa = PBXResourcesBuildPhase; 370 | buildActionMask = 2147483647; 371 | files = ( 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | DB3172282D8ACCB26793B6382F78C446 /* Resources */ = { 376 | isa = PBXResourcesBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | }; 382 | /* End PBXResourcesBuildPhase section */ 383 | 384 | /* Begin PBXSourcesBuildPhase section */ 385 | 5DDA7B5455D0CF33E0FD05501424B2FA /* Sources */ = { 386 | isa = PBXSourcesBuildPhase; 387 | buildActionMask = 2147483647; 388 | files = ( 389 | 91F1CC68BB783E89D434D91B51ADEE94 /* Pods-AutoCompleteTextField_Example-dummy.m in Sources */, 390 | ); 391 | runOnlyForDeploymentPostprocessing = 0; 392 | }; 393 | C2A2FE7E384658229AD128B464307CE9 /* Sources */ = { 394 | isa = PBXSourcesBuildPhase; 395 | buildActionMask = 2147483647; 396 | files = ( 397 | BAD14D64534A31860D49B6971E0237B6 /* Pods-AutoCompleteTextField_Tests-dummy.m in Sources */, 398 | ); 399 | runOnlyForDeploymentPostprocessing = 0; 400 | }; 401 | F4D38082C848B3588E8588754EB39B2E /* Sources */ = { 402 | isa = PBXSourcesBuildPhase; 403 | buildActionMask = 2147483647; 404 | files = ( 405 | 4E871FC430DFD135FA2AAFF8A3A00532 /* ACTFConstants.swift in Sources */, 406 | 54E9D0504BDAEB49E3336550D9BFC5F2 /* ACTFDomain.swift in Sources */, 407 | B34915E8CF88393D67E9BE172F9D3BDA /* ACTFLabel.swift in Sources */, 408 | E0CB054C11F5C8F84B954EBA5B2F40DA /* ACTFProtocols.swift in Sources */, 409 | D3E5B89ECFDD63D8A364933B46D95721 /* AutoCompleteTextField.swift in Sources */, 410 | 736370830D0E803A202E81AF541BDE26 /* AutoCompleteTextField-dummy.m in Sources */, 411 | ); 412 | runOnlyForDeploymentPostprocessing = 0; 413 | }; 414 | /* End PBXSourcesBuildPhase section */ 415 | 416 | /* Begin PBXTargetDependency section */ 417 | 0E542D9B02CC5E4436A8932C6183CA4C /* PBXTargetDependency */ = { 418 | isa = PBXTargetDependency; 419 | name = AutoCompleteTextField; 420 | target = DC4A1A5AA982B1775A2698C96685730A /* AutoCompleteTextField */; 421 | targetProxy = 953F654CA9C17A215B0960AEBEA15D43 /* PBXContainerItemProxy */; 422 | }; 423 | C7459C90347026E63053110873FC9322 /* PBXTargetDependency */ = { 424 | isa = PBXTargetDependency; 425 | name = AutoCompleteTextField; 426 | target = DC4A1A5AA982B1775A2698C96685730A /* AutoCompleteTextField */; 427 | targetProxy = 11CB603D0593413726726C1168316A78 /* PBXContainerItemProxy */; 428 | }; 429 | /* End PBXTargetDependency section */ 430 | 431 | /* Begin XCBuildConfiguration section */ 432 | 2B9E26EAE2CD392AD762421F663075A1 /* Debug */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | ALWAYS_SEARCH_USER_PATHS = NO; 436 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 437 | CLANG_ANALYZER_NONNULL = YES; 438 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 439 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 440 | CLANG_CXX_LIBRARY = "libc++"; 441 | CLANG_ENABLE_MODULES = YES; 442 | CLANG_ENABLE_OBJC_ARC = YES; 443 | CLANG_ENABLE_OBJC_WEAK = YES; 444 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 445 | CLANG_WARN_BOOL_CONVERSION = YES; 446 | CLANG_WARN_COMMA = YES; 447 | CLANG_WARN_CONSTANT_CONVERSION = YES; 448 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 449 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 450 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 451 | CLANG_WARN_EMPTY_BODY = YES; 452 | CLANG_WARN_ENUM_CONVERSION = YES; 453 | CLANG_WARN_INFINITE_RECURSION = YES; 454 | CLANG_WARN_INT_CONVERSION = YES; 455 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 456 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 457 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 459 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 460 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 461 | CLANG_WARN_STRICT_PROTOTYPES = YES; 462 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 463 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | COPY_PHASE_STRIP = NO; 467 | DEAD_CODE_STRIPPING = YES; 468 | DEBUG_INFORMATION_FORMAT = dwarf; 469 | ENABLE_STRICT_OBJC_MSGSEND = YES; 470 | ENABLE_TESTABILITY = YES; 471 | GCC_C_LANGUAGE_STANDARD = gnu11; 472 | GCC_DYNAMIC_NO_PIC = NO; 473 | GCC_NO_COMMON_BLOCKS = YES; 474 | GCC_OPTIMIZATION_LEVEL = 0; 475 | GCC_PREPROCESSOR_DEFINITIONS = ( 476 | "POD_CONFIGURATION_DEBUG=1", 477 | "DEBUG=1", 478 | "$(inherited)", 479 | ); 480 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 481 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 482 | GCC_WARN_UNDECLARED_SELECTOR = YES; 483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 484 | GCC_WARN_UNUSED_FUNCTION = YES; 485 | GCC_WARN_UNUSED_VARIABLE = YES; 486 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 487 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 488 | MTL_FAST_MATH = YES; 489 | ONLY_ACTIVE_ARCH = YES; 490 | PRODUCT_NAME = "$(TARGET_NAME)"; 491 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 492 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 493 | SWIFT_VERSION = 5.0; 494 | SYMROOT = "${SRCROOT}/../build"; 495 | }; 496 | name = Debug; 497 | }; 498 | 63FAF33E1C55B71A5F5A8B3CC8749F99 /* Release */ = { 499 | isa = XCBuildConfiguration; 500 | buildSettings = { 501 | ALWAYS_SEARCH_USER_PATHS = NO; 502 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 503 | CLANG_ANALYZER_NONNULL = YES; 504 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 505 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 506 | CLANG_CXX_LIBRARY = "libc++"; 507 | CLANG_ENABLE_MODULES = YES; 508 | CLANG_ENABLE_OBJC_ARC = YES; 509 | CLANG_ENABLE_OBJC_WEAK = YES; 510 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 511 | CLANG_WARN_BOOL_CONVERSION = YES; 512 | CLANG_WARN_COMMA = YES; 513 | CLANG_WARN_CONSTANT_CONVERSION = YES; 514 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 515 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 516 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 517 | CLANG_WARN_EMPTY_BODY = YES; 518 | CLANG_WARN_ENUM_CONVERSION = YES; 519 | CLANG_WARN_INFINITE_RECURSION = YES; 520 | CLANG_WARN_INT_CONVERSION = YES; 521 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 522 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 523 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 524 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 525 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 526 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 527 | CLANG_WARN_STRICT_PROTOTYPES = YES; 528 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 529 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 530 | CLANG_WARN_UNREACHABLE_CODE = YES; 531 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 532 | COPY_PHASE_STRIP = NO; 533 | DEAD_CODE_STRIPPING = YES; 534 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 535 | ENABLE_NS_ASSERTIONS = NO; 536 | ENABLE_STRICT_OBJC_MSGSEND = YES; 537 | GCC_C_LANGUAGE_STANDARD = gnu11; 538 | GCC_NO_COMMON_BLOCKS = YES; 539 | GCC_PREPROCESSOR_DEFINITIONS = ( 540 | "POD_CONFIGURATION_RELEASE=1", 541 | "$(inherited)", 542 | ); 543 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 544 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 545 | GCC_WARN_UNDECLARED_SELECTOR = YES; 546 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 547 | GCC_WARN_UNUSED_FUNCTION = YES; 548 | GCC_WARN_UNUSED_VARIABLE = YES; 549 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 550 | MTL_ENABLE_DEBUG_INFO = NO; 551 | MTL_FAST_MATH = YES; 552 | PRODUCT_NAME = "$(TARGET_NAME)"; 553 | SWIFT_COMPILATION_MODE = wholemodule; 554 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 555 | SWIFT_VERSION = 5.0; 556 | SYMROOT = "${SRCROOT}/../build"; 557 | }; 558 | name = Release; 559 | }; 560 | 68A6C5BA5185A19504D4869BE07C40B2 /* Release */ = { 561 | isa = XCBuildConfiguration; 562 | baseConfigurationReference = 3893988862E8FBC5BB41312CCA49A524 /* Pods-AutoCompleteTextField_Example.release.xcconfig */; 563 | buildSettings = { 564 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 565 | CLANG_ENABLE_OBJC_WEAK = NO; 566 | CODE_SIGN_IDENTITY = ""; 567 | CURRENT_PROJECT_VERSION = 1; 568 | DEFINES_MODULE = YES; 569 | DYLIB_COMPATIBILITY_VERSION = 1; 570 | DYLIB_CURRENT_VERSION = 1; 571 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 572 | ENABLE_MODULE_VERIFIER = YES; 573 | INFOPLIST_FILE = "Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-Info.plist"; 574 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 575 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 576 | LD_RUNPATH_SEARCH_PATHS = ( 577 | "$(inherited)", 578 | "@executable_path/Frameworks", 579 | "@loader_path/Frameworks", 580 | ); 581 | MACH_O_TYPE = staticlib; 582 | MODULEMAP_FILE = "Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example.modulemap"; 583 | MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; 584 | MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14"; 585 | OTHER_LDFLAGS = ""; 586 | OTHER_LIBTOOLFLAGS = ""; 587 | PODS_ROOT = "$(SRCROOT)"; 588 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 589 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 590 | SDKROOT = iphoneos; 591 | SKIP_INSTALL = YES; 592 | TARGETED_DEVICE_FAMILY = "1,2"; 593 | VALIDATE_PRODUCT = YES; 594 | VERSIONING_SYSTEM = "apple-generic"; 595 | VERSION_INFO_PREFIX = ""; 596 | }; 597 | name = Release; 598 | }; 599 | AF22ED783B7AD6ABC0CB8BDB55C06806 /* Debug */ = { 600 | isa = XCBuildConfiguration; 601 | baseConfigurationReference = F9ADEBCB7D0E5C07F6E37635A197B865 /* Pods-AutoCompleteTextField_Example.debug.xcconfig */; 602 | buildSettings = { 603 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 604 | CLANG_ENABLE_OBJC_WEAK = NO; 605 | CODE_SIGN_IDENTITY = ""; 606 | CURRENT_PROJECT_VERSION = 1; 607 | DEFINES_MODULE = YES; 608 | DYLIB_COMPATIBILITY_VERSION = 1; 609 | DYLIB_CURRENT_VERSION = 1; 610 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 611 | ENABLE_MODULE_VERIFIER = YES; 612 | INFOPLIST_FILE = "Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example-Info.plist"; 613 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 614 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 615 | LD_RUNPATH_SEARCH_PATHS = ( 616 | "$(inherited)", 617 | "@executable_path/Frameworks", 618 | "@loader_path/Frameworks", 619 | ); 620 | MACH_O_TYPE = staticlib; 621 | MODULEMAP_FILE = "Target Support Files/Pods-AutoCompleteTextField_Example/Pods-AutoCompleteTextField_Example.modulemap"; 622 | MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; 623 | MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14"; 624 | OTHER_LDFLAGS = ""; 625 | OTHER_LIBTOOLFLAGS = ""; 626 | PODS_ROOT = "$(SRCROOT)"; 627 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 628 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 629 | SDKROOT = iphoneos; 630 | SKIP_INSTALL = YES; 631 | TARGETED_DEVICE_FAMILY = "1,2"; 632 | VERSIONING_SYSTEM = "apple-generic"; 633 | VERSION_INFO_PREFIX = ""; 634 | }; 635 | name = Debug; 636 | }; 637 | B4280D06708BC4C23B66BB8264326C5F /* Debug */ = { 638 | isa = XCBuildConfiguration; 639 | baseConfigurationReference = D1A8483785E5F76D45C3C4B9810B7D1F /* AutoCompleteTextField.debug.xcconfig */; 640 | buildSettings = { 641 | CLANG_ENABLE_OBJC_WEAK = NO; 642 | CODE_SIGN_IDENTITY = ""; 643 | CURRENT_PROJECT_VERSION = 1; 644 | DEFINES_MODULE = YES; 645 | DYLIB_COMPATIBILITY_VERSION = 1; 646 | DYLIB_CURRENT_VERSION = 1; 647 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 648 | ENABLE_MODULE_VERIFIER = YES; 649 | GCC_PREFIX_HEADER = "Target Support Files/AutoCompleteTextField/AutoCompleteTextField-prefix.pch"; 650 | INFOPLIST_FILE = "Target Support Files/AutoCompleteTextField/AutoCompleteTextField-Info.plist"; 651 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 652 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 653 | LD_RUNPATH_SEARCH_PATHS = ( 654 | "$(inherited)", 655 | "@executable_path/Frameworks", 656 | "@loader_path/Frameworks", 657 | ); 658 | MODULEMAP_FILE = "Target Support Files/AutoCompleteTextField/AutoCompleteTextField.modulemap"; 659 | MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; 660 | MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14"; 661 | PRODUCT_MODULE_NAME = AutoCompleteTextField; 662 | PRODUCT_NAME = AutoCompleteTextField; 663 | SDKROOT = iphoneos; 664 | SKIP_INSTALL = YES; 665 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 666 | SWIFT_VERSION = 5; 667 | TARGETED_DEVICE_FAMILY = "1,2"; 668 | VERSIONING_SYSTEM = "apple-generic"; 669 | VERSION_INFO_PREFIX = ""; 670 | }; 671 | name = Debug; 672 | }; 673 | DBE3F8AFB5FA236EC49141A751AA5961 /* Release */ = { 674 | isa = XCBuildConfiguration; 675 | baseConfigurationReference = 21267F9A24766F58C9158519BA82D446 /* Pods-AutoCompleteTextField_Tests.release.xcconfig */; 676 | buildSettings = { 677 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 678 | CLANG_ENABLE_OBJC_WEAK = NO; 679 | CODE_SIGN_IDENTITY = ""; 680 | CURRENT_PROJECT_VERSION = 1; 681 | DEFINES_MODULE = YES; 682 | DYLIB_COMPATIBILITY_VERSION = 1; 683 | DYLIB_CURRENT_VERSION = 1; 684 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 685 | ENABLE_MODULE_VERIFIER = YES; 686 | INFOPLIST_FILE = "Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-Info.plist"; 687 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 688 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 689 | LD_RUNPATH_SEARCH_PATHS = ( 690 | "$(inherited)", 691 | "@executable_path/Frameworks", 692 | "@loader_path/Frameworks", 693 | ); 694 | MACH_O_TYPE = staticlib; 695 | MODULEMAP_FILE = "Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests.modulemap"; 696 | MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; 697 | MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14"; 698 | OTHER_LDFLAGS = ""; 699 | OTHER_LIBTOOLFLAGS = ""; 700 | PODS_ROOT = "$(SRCROOT)"; 701 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 702 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 703 | SDKROOT = iphoneos; 704 | SKIP_INSTALL = YES; 705 | TARGETED_DEVICE_FAMILY = "1,2"; 706 | VALIDATE_PRODUCT = YES; 707 | VERSIONING_SYSTEM = "apple-generic"; 708 | VERSION_INFO_PREFIX = ""; 709 | }; 710 | name = Release; 711 | }; 712 | E6CF5DA28F4EBD9A9A412B5437CEE0B2 /* Release */ = { 713 | isa = XCBuildConfiguration; 714 | baseConfigurationReference = 997D66D3EBC80F768B2D49C8ADE421E8 /* AutoCompleteTextField.release.xcconfig */; 715 | buildSettings = { 716 | CLANG_ENABLE_OBJC_WEAK = NO; 717 | CODE_SIGN_IDENTITY = ""; 718 | CURRENT_PROJECT_VERSION = 1; 719 | DEFINES_MODULE = YES; 720 | DYLIB_COMPATIBILITY_VERSION = 1; 721 | DYLIB_CURRENT_VERSION = 1; 722 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 723 | ENABLE_MODULE_VERIFIER = YES; 724 | GCC_PREFIX_HEADER = "Target Support Files/AutoCompleteTextField/AutoCompleteTextField-prefix.pch"; 725 | INFOPLIST_FILE = "Target Support Files/AutoCompleteTextField/AutoCompleteTextField-Info.plist"; 726 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 727 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 728 | LD_RUNPATH_SEARCH_PATHS = ( 729 | "$(inherited)", 730 | "@executable_path/Frameworks", 731 | "@loader_path/Frameworks", 732 | ); 733 | MODULEMAP_FILE = "Target Support Files/AutoCompleteTextField/AutoCompleteTextField.modulemap"; 734 | MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; 735 | MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14"; 736 | PRODUCT_MODULE_NAME = AutoCompleteTextField; 737 | PRODUCT_NAME = AutoCompleteTextField; 738 | SDKROOT = iphoneos; 739 | SKIP_INSTALL = YES; 740 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 741 | SWIFT_VERSION = 5; 742 | TARGETED_DEVICE_FAMILY = "1,2"; 743 | VALIDATE_PRODUCT = YES; 744 | VERSIONING_SYSTEM = "apple-generic"; 745 | VERSION_INFO_PREFIX = ""; 746 | }; 747 | name = Release; 748 | }; 749 | EC4A5FA870B1EAEB7A6C5A4ACE75B0FA /* Debug */ = { 750 | isa = XCBuildConfiguration; 751 | baseConfigurationReference = 630BD95FB191198230FC73155058257A /* Pods-AutoCompleteTextField_Tests.debug.xcconfig */; 752 | buildSettings = { 753 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 754 | CLANG_ENABLE_OBJC_WEAK = NO; 755 | CODE_SIGN_IDENTITY = ""; 756 | CURRENT_PROJECT_VERSION = 1; 757 | DEFINES_MODULE = YES; 758 | DYLIB_COMPATIBILITY_VERSION = 1; 759 | DYLIB_CURRENT_VERSION = 1; 760 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 761 | ENABLE_MODULE_VERIFIER = YES; 762 | INFOPLIST_FILE = "Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests-Info.plist"; 763 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 764 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 765 | LD_RUNPATH_SEARCH_PATHS = ( 766 | "$(inherited)", 767 | "@executable_path/Frameworks", 768 | "@loader_path/Frameworks", 769 | ); 770 | MACH_O_TYPE = staticlib; 771 | MODULEMAP_FILE = "Target Support Files/Pods-AutoCompleteTextField_Tests/Pods-AutoCompleteTextField_Tests.modulemap"; 772 | MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; 773 | MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14"; 774 | OTHER_LDFLAGS = ""; 775 | OTHER_LIBTOOLFLAGS = ""; 776 | PODS_ROOT = "$(SRCROOT)"; 777 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 778 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 779 | SDKROOT = iphoneos; 780 | SKIP_INSTALL = YES; 781 | TARGETED_DEVICE_FAMILY = "1,2"; 782 | VERSIONING_SYSTEM = "apple-generic"; 783 | VERSION_INFO_PREFIX = ""; 784 | }; 785 | name = Debug; 786 | }; 787 | /* End XCBuildConfiguration section */ 788 | 789 | /* Begin XCConfigurationList section */ 790 | 1016B9BB3ADD12E7A2C180F45DC1E581 /* Build configuration list for PBXNativeTarget "AutoCompleteTextField" */ = { 791 | isa = XCConfigurationList; 792 | buildConfigurations = ( 793 | B4280D06708BC4C23B66BB8264326C5F /* Debug */, 794 | E6CF5DA28F4EBD9A9A412B5437CEE0B2 /* Release */, 795 | ); 796 | defaultConfigurationIsVisible = 0; 797 | defaultConfigurationName = Release; 798 | }; 799 | 4263F2D3BFD5FA5B29672BD711288DA3 /* Build configuration list for PBXNativeTarget "Pods-AutoCompleteTextField_Tests" */ = { 800 | isa = XCConfigurationList; 801 | buildConfigurations = ( 802 | EC4A5FA870B1EAEB7A6C5A4ACE75B0FA /* Debug */, 803 | DBE3F8AFB5FA236EC49141A751AA5961 /* Release */, 804 | ); 805 | defaultConfigurationIsVisible = 0; 806 | defaultConfigurationName = Release; 807 | }; 808 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 809 | isa = XCConfigurationList; 810 | buildConfigurations = ( 811 | 2B9E26EAE2CD392AD762421F663075A1 /* Debug */, 812 | 63FAF33E1C55B71A5F5A8B3CC8749F99 /* Release */, 813 | ); 814 | defaultConfigurationIsVisible = 0; 815 | defaultConfigurationName = Release; 816 | }; 817 | 99DD914449E0592745C4AC0577346620 /* Build configuration list for PBXNativeTarget "Pods-AutoCompleteTextField_Example" */ = { 818 | isa = XCConfigurationList; 819 | buildConfigurations = ( 820 | AF22ED783B7AD6ABC0CB8BDB55C06806 /* Debug */, 821 | 68A6C5BA5185A19504D4869BE07C40B2 /* Release */, 822 | ); 823 | defaultConfigurationIsVisible = 0; 824 | defaultConfigurationName = Release; 825 | }; 826 | /* End XCConfigurationList section */ 827 | }; 828 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 829 | } 830 | --------------------------------------------------------------------------------