/ACTextField

UITextField with Auto completion feature

Primary LanguageSwiftMIT LicenseMIT

ACTextField

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod 'ACTextField'

Use

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

Author

varkrishna, krishan.varshney708@gmail.com

License

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