AutocompleteTextfieldSwift
AutocompleteTextfieldSwift copied to clipboard
Text doesn't autocomplete?
I've implemented all that is required from this great add on, but for some reason, though the "autoCompleteStrings" appear in the table view for the text field, it doesn't actually autocomplete when I begin typing. is there a problem with my handleTextFieldInterfaces?
`private func handleTextFieldInterfaces() { self.chemicalAuto.onTextChange = {[weak self] text in
print("Change")
var keys = Array(DataSource.sharedManager.chemicalTable.keys)
self!.chemicalAuto.autoCompleteStrings = keys
}
self.chemicalAuto.onSelect =
{
[weak self] text, indexpath in
print("select")
var keys = Array(DataSource.sharedManager.chemicalTable.keys)
self!.chemicalAuto.autoCompleteStrings = keys
}
}`