apasccon / SearchTextField

UITextField subclass with autocompletion suggestions list
MIT License
1.15k stars 254 forks source link

How can I filter with ignore some characters #168

Open khachuong opened 5 years ago

khachuong commented 5 years ago

My text field just work great but I want to improve the filter to be more flexible.

For example:

myTextField.filterStrings = ["30.000", "300.000", "3.000.000", "30.000.000]

If I type: "30" then the result will only display: ["30.000", "300.000", "30.000.000"]

I want to ignore some characters, in this case I want to ignore the dot character and the result should be: ["30.000", "300.000", "3.000.000", "30.000.000] @apasccon