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, krishan.varshney708@gmail.com
ACTextField is available under the MIT license. See the LICENSE file for more info.