Latest 1.0.2
License MIT
Platforms ios 10.0
Frameworks UIKit

CI Status


To run the example project, clone the repo, and run pod install from the Example directory first.



ACTextField is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ACTextField'


To import library

import ACTextField

To give Data Set

yourACTextField..setAutoCompleteWith(DataSet: ["Apple","Mango","Orange"])

To set its delegate

yourACTextField.ACDelegate = self
func ACTextField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
        return true

To set its suggestion TextColor , By default it is light gray

yourACTextField.suggestionTextColor = UIColor.yellow


varkrishna, [email protected]


ACTextField is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "ACTextField",
    "version": "1.0.2",
    "summary": "UITextField Subclass which have auto completed text feature",
    "description": "Using this library you can set your textfield class to ACTextField , which enable AutoComplete Feature in your textField.nToday Auto Completion feature is one of most important features. So using ACTextField use can have AutoCompletion feature in your app.nACTextField have a method 'setAutoCompleteWith', in which you have to pass Array of String type, this array is considered as data source of your AutoCompletion feature.nACTextField have a strict mode which you can enable or disable , by default it is disabled. Using strict mode you can tell to auto capitalise first letter of text you are writing in textfield.nIf you want to implement 'func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool' delagate method of textField then you can implement ACTextFieldDelegatenYou can set 'suggestionTextColor' ,a property of ACTextField  ,using this property you can set color of suggestion string. You can set 'suggestionTextColor' from Storyboard also.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "varkrishna": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.2"
    "pod_target_xcconfig": {
        "swift_version": "4.0"
    "platforms": {
        "ios": "10.0"
    "swift_version": "4.0",
    "source_files": "ACTextField/Classes/**/*",
    "frameworks": "UIKit"

Pin It on Pinterest

Share This