I am working to implement search functionality for UITableView. Table may contain lot of rows so searching technique needs to be efficient. If code is compatible with Swift5 then it would be great.
I need a way where I can get list of items matching in array.
For ex: I have an array with these values "One", "Two", "Three", "Four", "Five"
If I search "o" then it should return "One", "Two", "Four" as array output
So I can fill UITableView with these new elements.