AutocompleteTextfieldSwift
AutocompleteTextfieldSwift copied to clipboard
Updates And Fixes.
Note: These changes were made to better use awesome library in one of my projects. Change log is as follows:
- Added
presenterViewproperty to manually pass in a view onto which you would want to add the completion table. This fixes the issues regarding table scrolling and table cell selections. - Changed variables to IBInspectables so its much easier now to use the library in IB.
- Updated codebase
- Cleaned up codebase
- Removed custom font option for autocomplete text (as it was not required in my project)
Thanks.
I just ran a quick test of this fork on device. The autocomplete isn't showing up. Are you sure it's working for you? If so, I can look into it further on my end.
@wvdk Yes I'm using it in one of my projects and its working pretty well.
I'll add a gif to support my statement.

@wvdk I think I know where the problem lies with it not working for you.
I've added a presenterView property to the textfield which needs to be hooked up in IB as that view is then used to house the autocomplete table.
I did this because of the various touch detection problems that people complained of and also in my case my textfield was inside a cell (hence causing the touch to not get detected on the cells outside the container view). So I took this approach and made the table show up on my main view and now it all works like a charm.
Also this approach is more robust as it can easily handle cases such as mine.