You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
}`
The text was updated successfully, but these errors were encountered:
Hi @surayashivji , i wasn't able to replicate this issue. But I have updated the code for the latest swift version. Please try if this will work for you first. Thank you.
@surayashivji@wasimsandhu I cannot replicate this issue on my end. Autocomplete strings are showing on table view when assigning strings to the autoCompleteStrings property.
However as to what is wrong on @surayashivji 's code snippet above, on self.chemicalAuto.onSelect please remove the ff:
var keys = Array(DataSource.sharedManager.chemicalTable.keys)
self!.chemicalAuto.autoCompleteStrings = keys
because this asks the library to once again reload and display another set of autocomplete strings
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
The text was updated successfully, but these errors were encountered: