AutocompleteTextfieldSwift icon indicating copy to clipboard operation
AutocompleteTextfieldSwift copied to clipboard

Text doesn't autocomplete?

Open surayashivji opened this issue 8 years ago • 3 comments

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
    }
}`

surayashivji avatar Feb 13 '16 05:02 surayashivji