A UITableViewCell with an editable text field

Overview

FDTextFieldTableViewCell

CI Status Version License Platform Carthage compatible

Features

  • Fully featured like the Right Detail style
  • Adds a UITextField to the cell and places it correctly

Usage

Select a cell in your storyboard and use the inspector to change the Custom Class to FDTextFieldTableViewCell.

Switch to the attributes inspector and set the style to Right Detail.

In your UITableViewController subclass, do something like:

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    let cell = self.tableView.dequeueReusableCellWithIdentifier("textField") as! FDTextFieldTableViewCell
    cell.textLabel!.text = "hi"
    cell.textField.text = "editMe"
    return cell
}

Installation

Installation

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.

CocoaPods

If you are already using CocoaPods, just add 'FDTextFieldTableViewCell' to your Podfile then run pod install.

Carthage

If you are already using Carthage, just add to your Cartfile:

github "fulldecent/FDTextFieldTableViewCell"

Then run carthage update to build the framework and drag the built FDTextFieldTableViewCell.framework into your Xcode project.

You might also like...
In-app notification in Swift, with customizable buttons and input text field.
In-app notification in Swift, with customizable buttons and input text field.

Notie Undistracted in-app notification in Swift, with added buttons and input box. Installation CocoaPods To integrate Notie into your Xcode project u

Currency text field formatter available for UIKit and SwiftUI 💶✏️
Currency text field formatter available for UIKit and SwiftUI 💶✏️

CurrencyText provides lightweight libraries for formating text field text as currency, available for both UIKit and SwiftUI. Its main core, the Curren

An iOS text field that represents tags, hashtags, tokens in general.
An iOS text field that represents tags, hashtags, tokens in general.

WSTagsField An iOS text field that represents tags, hashtags, tokens in general. Usage let tagsField = WSTagsField() tagsField.layoutMargins = UIEdgeI

TCDInputView is an open source custom input view which is displayed when a text field becomes the first responder.

TCDInputView for iOS TCDInputView is an open source custom input view which is displayed when a text field becomes the first responder. Requirements T

Text entry controls which contain a built-in title/label so that you don't have to add a separate title for each field.
Text entry controls which contain a built-in title/label so that you don't have to add a separate title for each field.

FloatLabelFields Overview Installation Via Interface Builder Via Code Credits Additional References Questions Overview FloatLabelFields is the Swift i

TextFieldAlert - A SwiftUI alert with text field(s) for iOS 13 and greater.
TextFieldAlert - A SwiftUI alert with text field(s) for iOS 13 and greater.

TextFieldAlert A SwiftUI alert with text field(s) for iOS 13 and greater. As Apple is going to introduce text field(s) as an alert actions in iOS 16,

Easy to use UITableViewCell implementing swiping to trigger actions.
Easy to use UITableViewCell implementing swiping to trigger actions.

SwipyCell Swipeable UITableViewCell inspired by the popular Mailbox App, implemented in Swift. Preview Exit Mode The .exit mode is the original behavi

Light wrapper of UITableViewCell that allows extra customization for tvOS
Light wrapper of UITableViewCell that allows extra customization for tvOS

TvOSCustomizableTableViewCell Light wrapper of UITableViewCell that allows extra customization for tvOS If you would like to have the same level of cu

Optimizing UITableViewCell For Fast Scrolling
Optimizing UITableViewCell For Fast Scrolling

DWURecyclingAlert Your code usually has less than ten milliseconds to run before it causes a frame drop.1 Visualize Bad Drawings On The Fly Injects 4

Template auto layout cell for automatically UITableViewCell height calculating
Template auto layout cell for automatically UITableViewCell height calculating

UITableView-FDTemplateLayoutCell Overview Template auto layout cell for automatically UITableViewCell height calculating. Basic usage If you have a se

An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions.
An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions.

MGSwipeTableCell MGSwipeTableCell is an easy to use UITableViewCell subclass that allows to display swipeable buttons with a variety of transitions. T

An easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application)
An easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application)

SWTableViewCell An easy-to-use UITableViewCell subclass that implements a swipeable content view which exposes utility buttons (similar to iOS 7 Mail

Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app).
Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app).

MCSwipeTableViewCell An effort to show how one would implement a UITableViewCell like the one we can see in the very well executed Mailbox iOS app. Pr

Simple timeline view implemented by UITableViewCell
Simple timeline view implemented by UITableViewCell

TimelineTableViewCell TimelineTableViewCell is a simple timeline view implemented by UITableViewCell. The UI design of TimelineTableViewCell is inspir

Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift.
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift.

SwipeCellKit Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. About A swipeable UITableViewCell or UI

A token field implementation for iOS

ResizingTokenField A token field implementation written in Swift 5. Features Can be used in Interface Builder or created programmatically Uses a UICol

My project about a suggestion field in swiftUI
My project about a suggestion field in swiftUI

SuggestionTextFieldMenu-SwiftUI My project about a suggestion field in swiftUI This is how it looks like! You can fill an array of objects and decide

Robust CloudKit synchronization: offline editing, relationships, shared and public databases, field-level deltas, and more.
Robust CloudKit synchronization: offline editing, relationships, shared and public databases, field-level deltas, and more.

CloudCore CloudCore is a framework that manages syncing between iCloud (CloudKit) and Core Data written on native Swift. Features Leveraging NSPersist

Allows the birdwatcher to record birdcalls in the field, for later identification

iBirdcall Librarian By Jonathan Mason for Project: You Decide!, iOS Developer Nanodegree. Allows the birdwatcher to record birdcalls in the field, for

Comments
  • Adopt layout from https://github.com/fulldecent/swift5-module-template

    Adopt layout from https://github.com/fulldecent/swift5-module-template

    A modern project layout for Swift modules is defined at https://github.com/fulldecent/swift5-module-template

    Work plan

    • [ ] Study best practices at link above
    • [ ] Apply the "Recipe" from the Swift 5 Module Template to this project
      • Organization: William Entriken
      • Author: William Entriken
      • Domain: net.phor
      • Date: today's date
    • [ ] Ensure that PR does not change the current development team

    For an example of a project that successfully adopted the modern project layout, see https://github.com/fulldecent/FDChessboardView

    Follow-on work

    • [ ] Make a minor version feature release with this updated project
    opened by fulldecent 2
  • Fix build error

    Fix build error

    For issue 1

    There were 2 travis-CI related build errors, one showed up after the first one was fixed.

    Error 1: I renamed the product name in the build settings for the FDTextFieldTableViewCellTest target from FDTextFieldTableViewCell to $(TARGET_NAME) which automatically sets it to the target name, which is FDTextFieldTableViewCellTest.

    Error 2: I added FDTextFieldTableViewCell.framework to the embedded binaries of iOS Example and renamed the bundle identifier. This did not show up in travisCI, but did while running locally.

    Error 3: setup() was trying to force unwrap self.detailTextLabel, which does not exist (since the TableViewCellStyle is .Default, not .Subtitle).

    opened by haydenholligan 1
Releases(3.0.1)
Owner
William Entriken
EN/中文 [email protected] Send NFTs to: 0xd859d7d8603D2dAb768D679eEEC25930C8FC59C1
William Entriken
Custom Field component with validation for creating easier form-like UI from interface builder.

#YALField Custom Field component with validation for creating easier form-like UI from interface builder. ##Example Project To run the example project

Yalantis 476 Sep 1, 2022
A framework to validate inputs of text fields and text views in a convenient way.

FormValidatorSwift The FormValidatorSwift framework allows you to validate inputs of text fields and text views in a convenient way. It has been devel

ustwo™ 500 Nov 29, 2022
A passcode entry field for macOS similar to Apple's two-factor authentication field.

DSFPasscodeView A passcode entry field for macOS similar to Apple's two-factor authentication field. About The control is made up of multiple groups o

Darren Ford 10 Nov 12, 2022
AEOTPTextField - A beautiful iOS OTP Text Field library, written in Swift with full access customization in UI.

AEOTPTextField - A beautiful iOS OTP Text Field library, written in Swift with full access customization in UI.

Abdelrhman Kamal 79 Jan 3, 2023
An iOS text field that represents tags, hashtags, tokens in general.

WSTagsField An iOS text field that represents tags, hashtags, tokens in general. Usage let tagsField = WSTagsField() tagsField.layoutMargins = UIEdgeI

Whitesmith 1.2k Dec 29, 2022
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.

SkyFloatingLabelTextField SkyFloatingLabelTextField is a beautiful, flexible and customizable implementation of the space saving "Float Label Pattern"

Skyscanner 4k Jan 1, 2023
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.

SkyFloatingLabelTextField SkyFloatingLabelTextField is a beautiful, flexible and customizable implementation of the space saving "Float Label Pattern"

Skyscanner 4k Jan 3, 2023
A SwiftUI TextField with a prompt (or placeholder) that floats above the text field when active or not empty. Requires iOS 15.

FloatingPromptTextField A prompt is the label in a text field that informs the user about the kind of content the text field expects. In a default Tex

Emilio Peláez 43 Nov 3, 2022
Focus text field in SwiftUI dynamically and progress through form using iOS keyboard.

Focuser Focuser allows to focus SwiftUI text fields dynamically and implements ability move go through the form using Keyboard for iOS 13 and iOS 14.

Art Technologies 118 Dec 25, 2022
Autocomplete for a text field in SwiftUI using async/await

Autocomplete for a text field in SwiftUI using async/await

Dmytro Anokhin 13 Oct 21, 2022