├── .github └── FUNDING.yml ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── FDTextFieldTableViewCell.podspec ├── LICENSE ├── Package.swift ├── README.md ├── Scripts └── travis-ci.sh ├── Sources └── FDTextFieldTableViewCell │ └── FDTextFieldTableViewCell.swift ├── Tests ├── CheckCocoaPodsQualityIndexes.rb ├── FDTextFieldTableViewCellTests │ ├── FDTextFieldTableViewCellTests.swift │ ├── UITextFieldSpy.swift │ └── XCTestManifests.swift └── LinuxMain.swift └── iOS Example ├── Sources ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ ├── Launch Screen.storyboard │ └── Main.storyboard ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist └── ViewController.swift ├── iOS Example.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── iOS Example.xcscheme └── iOS Example.xcworkspace ├── contents.xcworkspacedata └── xcshareddata └── IDEWorkspaceChecks.plist /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [fulldecent] 4 | custom: ["https://www.paypal.me/fulldecent", "https://amazon.com/hz/wishlist/ls/EE78A23EEGQB"] 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Mac OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | 6 | ## Build generated 7 | build/ 8 | DerivedData 9 | 10 | ## Various settings 11 | *.pbxuser 12 | !default.pbxuser 13 | *.mode1v3 14 | !default.mode1v3 15 | *.mode2v3 16 | !default.mode2v3 17 | *.perspectivev3 18 | !default.perspectivev3 19 | xcuserdata 20 | 21 | ## Other 22 | *.xccheckout 23 | *.moved-aside 24 | *.xcuserstate 25 | *.xcscmblueprint 26 | 27 | ## Obj-C/Swift specific 28 | *.hmap 29 | *.ipa 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | .build/ 37 | .swiftpm 38 | 39 | # Carthage 40 | Carthage/Build 41 | 42 | FDTextFieldTableViewCell.framework.zip 43 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode11.2 3 | env: 4 | global: 5 | - LC_CTYPE=en_US.UTF-8 6 | - LANG=en_US.UTF-8 7 | - RUN_TESTS="YES" 8 | - BUILD_EXAMPLE="YES" 9 | - POD_LINT="NO" 10 | - POD_QUALITY_CHECK="NO" 11 | matrix: 12 | - DESTINATION="OS=13.2,name=iPhone 8 Plus" 13 | script: 14 | - Scripts/travis-ci.sh -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to this project will be documented in this file. 3 | `FDTextFieldTableViewCell` adheres to [Semantic Versioning](http://semver.org/). 4 | 5 | --- 6 | 7 | ## [Master](https://github.com/fulldecent/FDTextFieldTableViewCell/compare/3.0.0...master) 8 | 9 | --- 10 | 11 | ## [3.0.0](https://github.com/fulldecent/FDTextFieldTableViewCell/releases/3.0.0) 12 | Released on 2019-04-08. 13 | 14 | #### Updated 15 | - Support Swift 5 16 | - Added by [William Entriken](https://github.com/fulldecent) 17 | 18 | --- 19 | 20 | ## [2.0.0](https://github.com/fulldecent/FDTextFieldTableViewCell/releases/2.0.0) 21 | Released on 2016-09-16. 22 | 23 | #### Updated 24 | - Support Swift 3 25 | - Added by [William Entriken](https://github.com/fulldecent) 26 | 27 | --- 28 | 29 | ## [1.0.1](https://github.com/fulldecent/FDTextFieldTableViewCell/releases/1.0.1) 30 | Released on 2016-06-27. 31 | 32 | #### Updated 33 | - Add contributing guidelines and document release process 34 | - Added by [William Entriken](https://github.com/fulldecent) 35 | - Fully document API 36 | - Added by [William Entriken](https://github.com/fulldecent) 37 | - Travis CI testing 38 | - Added by [William Entriken](https://github.com/fulldecent) 39 | - Change Log 40 | - Added by [William Entriken](https://github.com/fulldecent) 41 | - CocoaPods Quality Index now uses same data as CocoaPods Docs generator 42 | - by [William Entriken](https://github.com/fulldecent) 43 | 44 | --- 45 | 46 | ## [1.0.0](https://github.com/fulldecent/FDTextFieldTableViewCell/releases/1.0.0) 47 | Released on 2016-06-13. 48 | 49 | First public release. 50 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | All contributors are welcome. Please use issues and pull requests to contribute to the project. And update [CHANGELOG.md](CHANGELOG.md) when committing. 4 | 5 | # Release Process 6 | 7 | 1. Confirm the build is passing in travis 8 | 1. This automatically checks the pod file is building 9 | 2. Create a release commit, see [prior releases](https://github.com/fulldecent/FDTextFieldTableViewCell/releases) for an example 10 | 1. Update the change log to label the latest improvements under the new version name 11 | 2. Update the podspec version number 12 | 3. Tag the release in GitHub 13 | 1. Create the release commit 14 | 2. Create the release with notes from the change log 15 | 3. Push the podspec to cocoapods 16 | 1. `pod trunk push` 17 | 4. Create Carthage binaries 18 | 1. `carthage build --no-skip-current` 19 | 2. `carthage archive FDTextFieldTableViewCell` 20 | 3. Add to the GitHub release 21 | -------------------------------------------------------------------------------- /FDTextFieldTableViewCell.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'FDTextFieldTableViewCell' 3 | s.version = '3.0.0' 4 | s.license = 'MIT' 5 | s.summary = 'A UITableViewCell with an editable text field' 6 | s.homepage = 'https://github.com/fulldecent/FDTextFieldTableViewCell' 7 | s.authors = { 'William Entriken' => 'github.com@phor.net' } 8 | s.source = { :git => 'https://github.com/fulldecent/FDTextFieldTableViewCell.git', :tag => s.version } 9 | s.ios.deployment_target = '8.0' 10 | s.swift_version = '5.0' 11 | s.source_files = 'Sources/FDTextFieldTableViewCell/*.swift' 12 | end 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 William Entriken 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.1 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "FDTextFieldTableViewCell", 7 | platforms: [.iOS(.v8)], 8 | products: [ 9 | .library( 10 | name: "FDTextFieldTableViewCell", 11 | targets: ["FDTextFieldTableViewCell"] 12 | ) 13 | ], 14 | dependencies: [], 15 | targets: [ 16 | .target( 17 | name: "FDTextFieldTableViewCell", 18 | dependencies: [] 19 | ), 20 | .testTarget( 21 | name: "FDTextFieldTableViewCellTests", 22 | dependencies: ["FDTextFieldTableViewCell"] 23 | ) 24 | ] 25 | ) 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | FDTextFieldTableViewCell 2 | ================ 3 | 4 | [![CI Status](http://img.shields.io/travis/fulldecent/FDTextFieldTableViewCell.svg?style=flat)](https://travis-ci.org/fulldecent/FDTextFieldTableViewCell) 5 | [![Version](https://img.shields.io/cocoapods/v/FDTextFieldTableViewCell.svg?style=flat)](http://cocoadocs.org/docsets/FDTextFieldTableViewCell) 6 | [![License](https://img.shields.io/cocoapods/l/FDTextFieldTableViewCell.svg?style=flat)](http://cocoadocs.org/docsets/FDTextFieldTableViewCell) 7 | [![Platform](https://img.shields.io/cocoapods/p/FDTextFieldTableViewCell.svg?style=flat)](http://cocoadocs.org/docsets/FDTextFieldTableViewCell) 8 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 9 | 10 | 11 | 12 | 13 | Features 14 | ======== 15 | 16 | * Fully featured like the Right Detail style 17 | * Adds a UITextField to the cell and places it correctly 18 | 19 | 20 | Usage 21 | ===== 22 | 23 | Select a cell in your storyboard and use the inspector to change the Custom Class to `FDTextFieldTableViewCell`. 24 | 25 | Switch to the attributes inspector and set the style to Right Detail. 26 | 27 | In your `UITableViewController` subclass, do something like: 28 | 29 | override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { 30 | let cell = self.tableView.dequeueReusableCellWithIdentifier("textField") as! FDTextFieldTableViewCell 31 | cell.textLabel!.text = "hi" 32 | cell.textField.text = "editMe" 33 | return cell 34 | } 35 | 36 | 37 | Installation 38 | ============ 39 | 40 | ## Installation 41 | 42 | Add this to your project using Swift Package Manager. In Xcode that is simply: File > Swift Packages > Add Package Dependency... and you're done. Alternative installations options are shown below for legacy projects. 43 | 44 | ### CocoaPods 45 | 46 | If you are already using [CocoaPods](http://cocoapods.org), just add 'FDTextFieldTableViewCell' to your `Podfile` then run `pod install`. 47 | 48 | ### Carthage 49 | 50 | If you are already using [Carthage](https://github.com/Carthage/Carthage), just add to your `Cartfile`: 51 | 52 | ```ogdl 53 | github "fulldecent/FDTextFieldTableViewCell" 54 | ``` 55 | 56 | Then run `carthage update` to build the framework and drag the built `FDTextFieldTableViewCell`.framework into your Xcode project. 57 | -------------------------------------------------------------------------------- /Scripts/travis-ci.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | EXAMPLE_SCHEME="iOS Example" 4 | EXAMPLE_WORKSPACE="iOS Example/iOS Example.xcworkspace" 5 | IOS_FRAMEWORK_SCHEME="FDTextFieldTableViewCell" 6 | 7 | set -o pipefail 8 | 9 | if [ $RUN_TESTS == "YES" ]; then 10 | xcodebuild -scheme "$IOS_FRAMEWORK_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty; 11 | else 12 | xcodebuild -scheme "$IOS_FRAMEWORK_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty; 13 | fi 14 | 15 | # Build Framework in Release and Run Tests if specified 16 | if [ $RUN_TESTS == "YES" ]; then 17 | xcodebuild -scheme "$IOS_FRAMEWORK_SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty; 18 | else 19 | xcodebuild -scheme "$IOS_FRAMEWORK_SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES build | xcpretty; 20 | fi 21 | 22 | if [ $BUILD_EXAMPLE == "YES" ]; then 23 | xcodebuild -workspace "$EXAMPLE_WORKSPACE" -scheme "$EXAMPLE_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty; 24 | fi 25 | 26 | # Run `pod lib lint` if specified 27 | if [ $POD_LINT == "YES" ]; then 28 | pod lib lint 29 | fi 30 | 31 | if [ $POD_QUALITY_CHECK == "YES" ]; then 32 | ruby Tests/CheckCocoaPodsQualityIndexes.rb FDTake 33 | fi -------------------------------------------------------------------------------- /Sources/FDTextFieldTableViewCell/FDTextFieldTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FDTextFieldTableViewCell.swift 3 | // FDTextFieldTableViewCell 4 | // 5 | // Created by William Entriken on 2/2/16. 6 | // Copyright © 2016 William Entriken. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | //@IBDesignable 12 | /// A UITableViewCell with a UITextField inside 13 | open class FDTextFieldTableViewCell: UITableViewCell { 14 | open var textField = UITextField() 15 | 16 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { 17 | super.init(style: .default, reuseIdentifier: reuseIdentifier) 18 | self.setup() 19 | } 20 | 21 | required public init?(coder aDecoder: NSCoder) { 22 | super.init(coder: aDecoder) 23 | self.setup() 24 | } 25 | 26 | override open func awakeFromNib() { 27 | super.awakeFromNib() 28 | self.setup() 29 | } 30 | 31 | private func setup() { 32 | self.detailTextLabel?.isHidden = true 33 | self.contentView.viewWithTag(3)?.removeFromSuperview() 34 | self.textField.tag = 3 35 | self.textField.translatesAutoresizingMaskIntoConstraints = false 36 | self.contentView.addSubview(self.textField) 37 | self.contentView.addConstraint(NSLayoutConstraint( 38 | item: self.textField, 39 | attribute: .leading, 40 | relatedBy: .equal, 41 | toItem: self.contentView, 42 | attribute: .leading, 43 | multiplier: 1, 44 | constant: 50 45 | )) 46 | self.contentView.addConstraint(NSLayoutConstraint( 47 | item: self.textField, 48 | attribute: .top, 49 | relatedBy: .equal, 50 | toItem: self.contentView, 51 | attribute: .top, 52 | multiplier: 1, 53 | constant: 8 54 | )) 55 | self.contentView.addConstraint(NSLayoutConstraint( 56 | item: self.textField, 57 | attribute: .bottom, 58 | relatedBy: .equal, 59 | toItem: self.contentView, 60 | attribute: .bottom, 61 | multiplier: 1, 62 | constant: -8 63 | )) 64 | self.contentView.addConstraint(NSLayoutConstraint( 65 | item: self.textField, 66 | attribute: .trailing, 67 | relatedBy: .equal, 68 | toItem: self.contentView, 69 | attribute: .trailing, 70 | multiplier: 1, 71 | constant: -16 72 | )) 73 | self.textField.textAlignment = .right 74 | } 75 | 76 | override open func touchesBegan(_ touches: Set, with event: UIEvent?) { 77 | self.textField.becomeFirstResponder() 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /Tests/CheckCocoaPodsQualityIndexes.rb: -------------------------------------------------------------------------------- 1 | #!/bin/ruby 2 | # 3 | # The validates that all controllable quality metrics receive maximum score 4 | # 5 | # Metrics are at: https://guides.cocoapods.org/making/quality-indexes.html 6 | # Your modifiers are at: https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/FDBarGuage/stats 7 | # Your raw data is at: http://metrics.cocoapods.org/api/v1/pods/FDBarGuage 8 | # 9 | 10 | require "json" 11 | require "uri" 12 | require "net/http" 13 | 14 | uri = URI.parse('https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/FDTextFieldTableViewCell/stats') 15 | http = Net::HTTP.new(uri.host, uri.port) 16 | http.use_ssl = true if uri.scheme == 'https' 17 | request = Net::HTTP::Get.new uri 18 | response = http.request(request) 19 | 20 | if !response.is_a? Net::HTTPOK 21 | puts "HTTP fetching error!" 22 | exit 1 23 | end 24 | 25 | passing = true 26 | for metric in JSON.parse(response.body)['metrics'] 27 | if ['Verified Owner', 'Very Popular', 'Popular'].include? metric['title'] 28 | puts "SKIPPED\tYou cannot control: " + metric['title'] 29 | next 30 | end 31 | if metric['modifier'] >= 0 32 | if metric['applies_for_pod'] 33 | puts "GOOD\tEarned points for: " + metric['title'] 34 | else 35 | puts "BAD\tMissed points for: " + metric['title'] 36 | passing = false 37 | end 38 | else 39 | if metric['applies_for_pod'] 40 | puts "BAD\tLost points for: " + metric['title'] 41 | passing = false 42 | else 43 | puts "GOOD\tAvoided penalty for: " + metric['title'] 44 | end 45 | end 46 | end 47 | 48 | exit passing ? 0 : 1 49 | -------------------------------------------------------------------------------- /Tests/FDTextFieldTableViewCellTests/FDTextFieldTableViewCellTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FDTextFieldTableViewCell.swift 3 | // FDTextFieldTableViewCell 4 | // 5 | // Created by William Entriken on 4/25/16. 6 | // Copyright © 2016 William Entriken. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import FDTextFieldTableViewCell 11 | 12 | class FDTextFieldTableViewCellTests: XCTestCase { 13 | var cell: FDTextFieldTableViewCell! 14 | var textFieldSpy: UITextFieldSpy! 15 | 16 | override func setUp() { 17 | super.setUp() 18 | 19 | continueAfterFailure = false 20 | 21 | cell = FDTextFieldTableViewCell( 22 | style:.default, 23 | reuseIdentifier: "bob" 24 | ) 25 | textFieldSpy = UITextFieldSpy() 26 | cell.textField = textFieldSpy 27 | } 28 | 29 | func testCanSubclass() { 30 | class Bob: FDTextFieldTableViewCell { 31 | } 32 | XCTAssert(true) 33 | } 34 | 35 | func testHasTextField() { 36 | let _ = cell.textField 37 | XCTAssert(true) 38 | } 39 | 40 | func testCanBeDecoded() { 41 | let coder = NSKeyedUnarchiver(forReadingWith: encodeView(cell)) 42 | let decodedCell = FDTextFieldTableViewCell(coder: coder) 43 | 44 | XCTAssertNotNil(decodedCell) 45 | } 46 | 47 | func testAwakeFromNib() { 48 | cell.awakeFromNib() 49 | 50 | XCTAssertNotNil(cell) 51 | } 52 | 53 | func testTextFieldShouldBecomeFirstReponderOnTouch() { 54 | cell.touchesBegan([], with: nil) 55 | 56 | XCTAssertEqual(textFieldSpy.numberOfBecomeFirstResponderCalls, 1) 57 | } 58 | 59 | private func encodeView(_ cell: UIView) -> Data { 60 | let data = NSMutableData() 61 | let archiver = NSKeyedArchiver(forWritingWith: data) 62 | archiver.encodeRootObject(cell) 63 | return data as Data 64 | } 65 | } 66 | 67 | extension FDTextFieldTableViewCellTests { 68 | static var allTests = [ 69 | ("testCanSubclass", testCanSubclass), 70 | ("testHasTextField", testHasTextField), 71 | ("testCanBeDecoded", testCanBeDecoded), 72 | ("testAwakeFromNib", testAwakeFromNib), 73 | ("testTextFieldShouldBecomeFirstReponderOnTouch", testTextFieldShouldBecomeFirstReponderOnTouch) 74 | ] 75 | } 76 | -------------------------------------------------------------------------------- /Tests/FDTextFieldTableViewCellTests/UITextFieldSpy.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // 4 | // 5 | // Created by Yaroslav Zhurakovskiy on 02.12.2019. 6 | // 7 | 8 | import UIKit 9 | 10 | class UITextFieldSpy: UITextField { 11 | var numberOfBecomeFirstResponderCalls = 0 12 | 13 | override func becomeFirstResponder() -> Bool { 14 | numberOfBecomeFirstResponderCalls += 1 15 | 16 | return super.becomeFirstResponder() 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Tests/FDTextFieldTableViewCellTests/XCTestManifests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | #if !canImport(ObjectiveC) 4 | public func allTests() -> [XCTestCaseEntry] { 5 | return [ 6 | testCase(FDTextFieldTableViewCellTests.allTests), 7 | ] 8 | } 9 | #endif 10 | -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import FDTextFieldTableViewCellTests 3 | 4 | var tests = [XCTestCaseEntry]() 5 | tests += FDTextFieldTableViewCellTests.allTests() 6 | XCTMain(tests) 7 | -------------------------------------------------------------------------------- /iOS Example/Sources/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | @UIApplicationMain 4 | class AppDelegate: UIResponder, UIApplicationDelegate { 5 | 6 | var window: UIWindow? 7 | 8 | 9 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 10 | // Override point for customization after application launch. 11 | return true 12 | } 13 | 14 | func applicationWillResignActive(_ application: UIApplication) { 15 | // 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. 16 | // 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. 17 | } 18 | 19 | func applicationDidEnterBackground(_ application: UIApplication) { 20 | // 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. 21 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 22 | } 23 | 24 | func applicationWillEnterForeground(_ application: UIApplication) { 25 | // 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. 26 | } 27 | 28 | func applicationDidBecomeActive(_ application: UIApplication) { 29 | // 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. 30 | } 31 | 32 | func applicationWillTerminate(_ application: UIApplication) { 33 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 34 | } 35 | 36 | 37 | } 38 | 39 | -------------------------------------------------------------------------------- /iOS Example/Sources/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /iOS Example/Sources/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /iOS Example/Sources/Base.lproj/Launch Screen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /iOS Example/Sources/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 31 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 55 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /iOS Example/Sources/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /iOS Example/Sources/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 | UIRequiresFullScreen 34 | 35 | UIStatusBarHidden 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | UISupportedInterfaceOrientations~ipad 44 | 45 | UIInterfaceOrientationPortrait 46 | UIInterfaceOrientationPortraitUpsideDown 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /iOS Example/Sources/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // FDTextFieldTableViewCell 4 | // 5 | // Created by William Entriken on 2/3/16. 6 | // Copyright © 2016 William Entriken. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import FDTextFieldTableViewCell 11 | 12 | class ViewController: UITableViewController { 13 | override func numberOfSections(in tableView: UITableView) -> Int { 14 | return 2 15 | } 16 | 17 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 18 | return 4 19 | } 20 | 21 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 22 | switch (indexPath as NSIndexPath).section { 23 | case 0: 24 | let cell = self.tableView.dequeueReusableCell(withIdentifier: "textField") as! FDTextFieldTableViewCell 25 | cell.textLabel!.text = "hi" 26 | cell.textField.text = "editMe" 27 | return cell 28 | default: 29 | let cell = self.tableView.dequeueReusableCell(withIdentifier: "basic")! 30 | cell.textLabel!.text = "hi" 31 | return cell 32 | } 33 | } 34 | 35 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 36 | self.view!.endEditing(true) 37 | } 38 | } 39 | 40 | extension ViewController /*: UIScrollViewDelegate*/ { 41 | override func scrollViewDidScroll(_ scrollView: UIScrollView) { 42 | self.view!.endEditing(true) 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /iOS Example/iOS Example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 52; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C40DAA03238474BE005B6F6A /* FDTextFieldTableViewCell in Frameworks */ = {isa = PBXBuildFile; productRef = C40DAA02238474BE005B6F6A /* FDTextFieldTableViewCell */; }; 11 | D94BE1BF1CCEBF2C0042282A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D94BE1BE1CCEBF2C0042282A /* ViewController.swift */; }; 12 | D94BE1C21CCEBF2C0042282A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D94BE1C01CCEBF2C0042282A /* Main.storyboard */; }; 13 | D94BE1C41CCEBF2C0042282A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D94BE1C31CCEBF2C0042282A /* Assets.xcassets */; }; 14 | D94BE1D31CCEC1730042282A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D94BE1D21CCEC1730042282A /* AppDelegate.swift */; }; 15 | D9CBAE971CCEC4ED006EC128 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D9CBAE961CCEC4ED006EC128 /* Launch Screen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 40EEFFEB1D85085B003890D9 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | D94BE1B91CCEBF2C0042282A /* iOS Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "iOS Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | D94BE1BE1CCEBF2C0042282A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 34 | D94BE1C11CCEBF2C0042282A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 35 | D94BE1C31CCEBF2C0042282A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 36 | D94BE1C81CCEBF2C0042282A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | D94BE1D21CCEC1730042282A /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | D9CBAE961CCEC4ED006EC128 /* Launch Screen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = "Launch Screen.storyboard"; path = "Base.lproj/Launch Screen.storyboard"; sourceTree = ""; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | D94BE1B61CCEBF2C0042282A /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | C40DAA03238474BE005B6F6A /* FDTextFieldTableViewCell in Frameworks */, 47 | ); 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | /* End PBXFrameworksBuildPhase section */ 51 | 52 | /* Begin PBXGroup section */ 53 | C40DAA01238474BE005B6F6A /* Frameworks */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | ); 57 | name = Frameworks; 58 | sourceTree = ""; 59 | }; 60 | D94BE1B01CCEBF2C0042282A = { 61 | isa = PBXGroup; 62 | children = ( 63 | D94BE1BB1CCEBF2C0042282A /* Sources */, 64 | D94BE1BA1CCEBF2C0042282A /* Products */, 65 | C40DAA01238474BE005B6F6A /* Frameworks */, 66 | ); 67 | sourceTree = ""; 68 | }; 69 | D94BE1BA1CCEBF2C0042282A /* Products */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | D94BE1B91CCEBF2C0042282A /* iOS Example.app */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | D94BE1BB1CCEBF2C0042282A /* Sources */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | D9CBAE961CCEC4ED006EC128 /* Launch Screen.storyboard */, 81 | D94BE1D21CCEC1730042282A /* AppDelegate.swift */, 82 | D94BE1BE1CCEBF2C0042282A /* ViewController.swift */, 83 | D94BE1C01CCEBF2C0042282A /* Main.storyboard */, 84 | D94BE1C31CCEBF2C0042282A /* Assets.xcassets */, 85 | D94BE1C81CCEBF2C0042282A /* Info.plist */, 86 | ); 87 | path = Sources; 88 | sourceTree = ""; 89 | }; 90 | /* End PBXGroup section */ 91 | 92 | /* Begin PBXNativeTarget section */ 93 | D94BE1B81CCEBF2C0042282A /* iOS Example */ = { 94 | isa = PBXNativeTarget; 95 | buildConfigurationList = D94BE1CB1CCEBF2C0042282A /* Build configuration list for PBXNativeTarget "iOS Example" */; 96 | buildPhases = ( 97 | D94BE1B51CCEBF2C0042282A /* Sources */, 98 | D94BE1B61CCEBF2C0042282A /* Frameworks */, 99 | D94BE1B71CCEBF2C0042282A /* Resources */, 100 | 40EEFFEB1D85085B003890D9 /* Embed Frameworks */, 101 | ); 102 | buildRules = ( 103 | ); 104 | dependencies = ( 105 | ); 106 | name = "iOS Example"; 107 | packageProductDependencies = ( 108 | C40DAA02238474BE005B6F6A /* FDTextFieldTableViewCell */, 109 | ); 110 | productName = "FDTextFieldTableViewCell iOS"; 111 | productReference = D94BE1B91CCEBF2C0042282A /* iOS Example.app */; 112 | productType = "com.apple.product-type.application"; 113 | }; 114 | /* End PBXNativeTarget section */ 115 | 116 | /* Begin PBXProject section */ 117 | D94BE1B11CCEBF2C0042282A /* Project object */ = { 118 | isa = PBXProject; 119 | attributes = { 120 | LastSwiftUpdateCheck = 0730; 121 | LastUpgradeCheck = 1020; 122 | ORGANIZATIONNAME = "William Entriken"; 123 | TargetAttributes = { 124 | D94BE1B81CCEBF2C0042282A = { 125 | CreatedOnToolsVersion = 7.3; 126 | DevelopmentTeam = 8Q693ZG5RN; 127 | LastSwiftMigration = 0800; 128 | }; 129 | }; 130 | }; 131 | buildConfigurationList = D94BE1B41CCEBF2C0042282A /* Build configuration list for PBXProject "iOS Example" */; 132 | compatibilityVersion = "Xcode 3.2"; 133 | developmentRegion = en; 134 | hasScannedForEncodings = 0; 135 | knownRegions = ( 136 | en, 137 | Base, 138 | ); 139 | mainGroup = D94BE1B01CCEBF2C0042282A; 140 | productRefGroup = D94BE1BA1CCEBF2C0042282A /* Products */; 141 | projectDirPath = ""; 142 | projectRoot = ""; 143 | targets = ( 144 | D94BE1B81CCEBF2C0042282A /* iOS Example */, 145 | ); 146 | }; 147 | /* End PBXProject section */ 148 | 149 | /* Begin PBXResourcesBuildPhase section */ 150 | D94BE1B71CCEBF2C0042282A /* Resources */ = { 151 | isa = PBXResourcesBuildPhase; 152 | buildActionMask = 2147483647; 153 | files = ( 154 | D9CBAE971CCEC4ED006EC128 /* Launch Screen.storyboard in Resources */, 155 | D94BE1C41CCEBF2C0042282A /* Assets.xcassets in Resources */, 156 | D94BE1C21CCEBF2C0042282A /* Main.storyboard in Resources */, 157 | ); 158 | runOnlyForDeploymentPostprocessing = 0; 159 | }; 160 | /* End PBXResourcesBuildPhase section */ 161 | 162 | /* Begin PBXSourcesBuildPhase section */ 163 | D94BE1B51CCEBF2C0042282A /* Sources */ = { 164 | isa = PBXSourcesBuildPhase; 165 | buildActionMask = 2147483647; 166 | files = ( 167 | D94BE1D31CCEC1730042282A /* AppDelegate.swift in Sources */, 168 | D94BE1BF1CCEBF2C0042282A /* ViewController.swift in Sources */, 169 | ); 170 | runOnlyForDeploymentPostprocessing = 0; 171 | }; 172 | /* End PBXSourcesBuildPhase section */ 173 | 174 | /* Begin PBXVariantGroup section */ 175 | D94BE1C01CCEBF2C0042282A /* Main.storyboard */ = { 176 | isa = PBXVariantGroup; 177 | children = ( 178 | D94BE1C11CCEBF2C0042282A /* Base */, 179 | ); 180 | name = Main.storyboard; 181 | sourceTree = ""; 182 | }; 183 | /* End PBXVariantGroup section */ 184 | 185 | /* Begin XCBuildConfiguration section */ 186 | D94BE1C91CCEBF2C0042282A /* Debug */ = { 187 | isa = XCBuildConfiguration; 188 | buildSettings = { 189 | ALWAYS_SEARCH_USER_PATHS = NO; 190 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 191 | CLANG_ANALYZER_NONNULL = YES; 192 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 193 | CLANG_CXX_LIBRARY = "libc++"; 194 | CLANG_ENABLE_MODULES = YES; 195 | CLANG_ENABLE_OBJC_ARC = YES; 196 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 197 | CLANG_WARN_BOOL_CONVERSION = YES; 198 | CLANG_WARN_COMMA = YES; 199 | CLANG_WARN_CONSTANT_CONVERSION = YES; 200 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 201 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 202 | CLANG_WARN_EMPTY_BODY = YES; 203 | CLANG_WARN_ENUM_CONVERSION = YES; 204 | CLANG_WARN_INFINITE_RECURSION = YES; 205 | CLANG_WARN_INT_CONVERSION = YES; 206 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 207 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 208 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 209 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 210 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 211 | CLANG_WARN_STRICT_PROTOTYPES = YES; 212 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 213 | CLANG_WARN_UNREACHABLE_CODE = YES; 214 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 215 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 216 | COPY_PHASE_STRIP = NO; 217 | DEBUG_INFORMATION_FORMAT = dwarf; 218 | ENABLE_STRICT_OBJC_MSGSEND = YES; 219 | ENABLE_TESTABILITY = YES; 220 | GCC_C_LANGUAGE_STANDARD = gnu99; 221 | GCC_DYNAMIC_NO_PIC = NO; 222 | GCC_NO_COMMON_BLOCKS = YES; 223 | GCC_OPTIMIZATION_LEVEL = 0; 224 | GCC_PREPROCESSOR_DEFINITIONS = ( 225 | "DEBUG=1", 226 | "$(inherited)", 227 | ); 228 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 229 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 230 | GCC_WARN_UNDECLARED_SELECTOR = YES; 231 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 232 | GCC_WARN_UNUSED_FUNCTION = YES; 233 | GCC_WARN_UNUSED_VARIABLE = YES; 234 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 235 | MTL_ENABLE_DEBUG_INFO = YES; 236 | ONLY_ACTIVE_ARCH = YES; 237 | SDKROOT = iphoneos; 238 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 239 | SWIFT_VERSION = 5.0; 240 | TARGETED_DEVICE_FAMILY = "1,2"; 241 | }; 242 | name = Debug; 243 | }; 244 | D94BE1CA1CCEBF2C0042282A /* Release */ = { 245 | isa = XCBuildConfiguration; 246 | buildSettings = { 247 | ALWAYS_SEARCH_USER_PATHS = NO; 248 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 249 | CLANG_ANALYZER_NONNULL = YES; 250 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 251 | CLANG_CXX_LIBRARY = "libc++"; 252 | CLANG_ENABLE_MODULES = YES; 253 | CLANG_ENABLE_OBJC_ARC = YES; 254 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 255 | CLANG_WARN_BOOL_CONVERSION = YES; 256 | CLANG_WARN_COMMA = YES; 257 | CLANG_WARN_CONSTANT_CONVERSION = YES; 258 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 259 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 260 | CLANG_WARN_EMPTY_BODY = YES; 261 | CLANG_WARN_ENUM_CONVERSION = YES; 262 | CLANG_WARN_INFINITE_RECURSION = YES; 263 | CLANG_WARN_INT_CONVERSION = YES; 264 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 265 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 266 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 267 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 268 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 269 | CLANG_WARN_STRICT_PROTOTYPES = YES; 270 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 271 | CLANG_WARN_UNREACHABLE_CODE = YES; 272 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 273 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 274 | COPY_PHASE_STRIP = NO; 275 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 276 | ENABLE_NS_ASSERTIONS = NO; 277 | ENABLE_STRICT_OBJC_MSGSEND = YES; 278 | GCC_C_LANGUAGE_STANDARD = gnu99; 279 | GCC_NO_COMMON_BLOCKS = YES; 280 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 281 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 282 | GCC_WARN_UNDECLARED_SELECTOR = YES; 283 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 284 | GCC_WARN_UNUSED_FUNCTION = YES; 285 | GCC_WARN_UNUSED_VARIABLE = YES; 286 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 287 | MTL_ENABLE_DEBUG_INFO = NO; 288 | SDKROOT = iphoneos; 289 | SWIFT_COMPILATION_MODE = wholemodule; 290 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 291 | SWIFT_VERSION = 5.0; 292 | TARGETED_DEVICE_FAMILY = "1,2"; 293 | VALIDATE_PRODUCT = YES; 294 | }; 295 | name = Release; 296 | }; 297 | D94BE1CC1CCEBF2C0042282A /* Debug */ = { 298 | isa = XCBuildConfiguration; 299 | buildSettings = { 300 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 301 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 302 | DEVELOPMENT_TEAM = 8Q693ZG5RN; 303 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 304 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 305 | LD_RUNPATH_SEARCH_PATHS = ( 306 | "$(inherited)", 307 | "@executable_path/Frameworks", 308 | ); 309 | PRODUCT_BUNDLE_IDENTIFIER = net.phor.FDTextFieldTableViewCell.iOSExample; 310 | PRODUCT_NAME = "iOS Example"; 311 | }; 312 | name = Debug; 313 | }; 314 | D94BE1CD1CCEBF2C0042282A /* Release */ = { 315 | isa = XCBuildConfiguration; 316 | buildSettings = { 317 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 318 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 319 | DEVELOPMENT_TEAM = 8Q693ZG5RN; 320 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 321 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 322 | LD_RUNPATH_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "@executable_path/Frameworks", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = net.phor.FDTextFieldTableViewCell.iOSExample; 327 | PRODUCT_NAME = "iOS Example"; 328 | }; 329 | name = Release; 330 | }; 331 | /* End XCBuildConfiguration section */ 332 | 333 | /* Begin XCConfigurationList section */ 334 | D94BE1B41CCEBF2C0042282A /* Build configuration list for PBXProject "iOS Example" */ = { 335 | isa = XCConfigurationList; 336 | buildConfigurations = ( 337 | D94BE1C91CCEBF2C0042282A /* Debug */, 338 | D94BE1CA1CCEBF2C0042282A /* Release */, 339 | ); 340 | defaultConfigurationIsVisible = 0; 341 | defaultConfigurationName = Release; 342 | }; 343 | D94BE1CB1CCEBF2C0042282A /* Build configuration list for PBXNativeTarget "iOS Example" */ = { 344 | isa = XCConfigurationList; 345 | buildConfigurations = ( 346 | D94BE1CC1CCEBF2C0042282A /* Debug */, 347 | D94BE1CD1CCEBF2C0042282A /* Release */, 348 | ); 349 | defaultConfigurationIsVisible = 0; 350 | defaultConfigurationName = Release; 351 | }; 352 | /* End XCConfigurationList section */ 353 | 354 | /* Begin XCSwiftPackageProductDependency section */ 355 | C40DAA02238474BE005B6F6A /* FDTextFieldTableViewCell */ = { 356 | isa = XCSwiftPackageProductDependency; 357 | productName = FDTextFieldTableViewCell; 358 | }; 359 | /* End XCSwiftPackageProductDependency section */ 360 | }; 361 | rootObject = D94BE1B11CCEBF2C0042282A /* Project object */; 362 | } 363 | -------------------------------------------------------------------------------- /iOS Example/iOS Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iOS Example/iOS Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /iOS Example/iOS Example.xcodeproj/xcshareddata/xcschemes/iOS Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /iOS Example/iOS Example.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /iOS Example/iOS Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | --------------------------------------------------------------------------------