All Projects → cjcoax → Autocomplete

cjcoax / Autocomplete

Licence: MIT license
jQuery like auto complete for iOS UITextField

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Autocomplete

Searchtextfield
UITextField subclass with autocompletion suggestions list
Stars: ✭ 980 (+2622.22%)
Mutual labels:  autocomplete, uitextfield
Autocompletefield
Subclass of UITextField that shows inline suggestions while typing.
Stars: ✭ 656 (+1722.22%)
Mutual labels:  autocomplete, uitextfield
APJTextPickerView
APJTextPickerView is simple implementation for UITextField to use as UIPickerView and UIDatePicker.
Stars: ✭ 21 (-41.67%)
Mutual labels:  uitextfield
sublime-PICO-8
PICO-8 plugin for the Sublime Text 3 editor.
Stars: ✭ 42 (+16.67%)
Mutual labels:  autocomplete
django-search-admin-autocomplete
Simple django app that add autocomplete to search inside admin panel.
Stars: ✭ 28 (-22.22%)
Mutual labels:  autocomplete
fast-autocomplete
Fast Autocomplete: When Elastcsearch suggestions are not fast and flexible enough
Stars: ✭ 201 (+458.33%)
Mutual labels:  autocomplete
CodeView
Android Library to make it easy to create an Code editor or IDE that support any languages and themes, with auto complete, auto indenting, snippets and more features
Stars: ✭ 254 (+605.56%)
Mutual labels:  autocomplete
MeasurementTextField
UITextField-based control for (NS)Measurement values input.
Stars: ✭ 16 (-55.56%)
Mutual labels:  uitextfield
Autocomplete
Suggests and completes words as you type! Write faster and more efficiently.
Stars: ✭ 18 (-50%)
Mutual labels:  autocomplete
love-atom
Smart autocompletion for the LÖVE framework in Atom.
Stars: ✭ 34 (-5.56%)
Mutual labels:  autocomplete
autocomplete-semantic-web
Semantic Web Autocomplete for Atom Editor
Stars: ✭ 45 (+25%)
Mutual labels:  autocomplete
TKFormTextField
A thin UITextField subclass with floatable placeholder and secondary text underneath for subtitle or error messages.
Stars: ✭ 17 (-52.78%)
Mutual labels:  uitextfield
django-yaaac
Ajax Autocomplete Django application
Stars: ✭ 13 (-63.89%)
Mutual labels:  autocomplete
react-emoji-input
😂 Emoji suggestions like the textareas in GitHub
Stars: ✭ 29 (-19.44%)
Mutual labels:  autocomplete
VSLilyPond
VSCode Extension for LilyPond
Stars: ✭ 59 (+63.89%)
Mutual labels:  autocomplete
react-native-element-textinput
A react-native TextInput, TagsInput and AutoComplete component easy to customize for both iOS and Android.
Stars: ✭ 28 (-22.22%)
Mutual labels:  autocomplete
react-abstract-autocomplete
Bring-Your-Own-UI autocomplete / mentions component for React.
Stars: ✭ 15 (-58.33%)
Mutual labels:  autocomplete
autocomplete
Laravel redis autocomplete
Stars: ✭ 27 (-25%)
Mutual labels:  autocomplete
vue-custom-google-autocomplete
🔍 Google Place Autocomplete Search - Renderless component + Wrappers for Bulma, Bootstrap and more...
Stars: ✭ 31 (-13.89%)
Mutual labels:  autocomplete
nest-elasticsearch-vue
Autocomplete search with Nestjs, Elasticsearch and Vue
Stars: ✭ 27 (-25%)
Mutual labels:  autocomplete

iOS Textfield Autocomplete

This is a iOS auto complete for iOS UITextField written all in Swift.

Autocomplete Demo

Installation

You can install it using CocoaPods

pod 'CCAutocomplete'

Usage

AutocompleteDelegate

The ViewController containing the UITextField should conform to AutocompleteDelegate protocol. The protocol contains following methods:

Required methods

  1. func autoCompleteTextField() -> UITextField: Returns UITextField we want to apply autocomplete for
  2. func autoCompleteThreshold(textField: UITextField) -> Int: Returns minimum number of characters to start showing autocomplete
  3. func autoCompleteItemsForSearchTerm(term: String) -> [AutocompletableOption]: Returns array of objects that conform to AutocompletableOption to be shown in the list of autocomplete
  4. func autoCompleteHeight() -> CGFloat: Maximum height which shows autocomplete items
  5. func didSelectItem(item: AutocompletableOption) -> Void: Is getting called when we tapped on the autocomplete item

Optional methods:

  1. func nibForAutoCompleteCell() -> UINib: Create a nib file containing custom UITableViewCell and return it from this method to customize autocomplete cell
  2. func heightForCells() -> CGFloat: height of custom autocomplete cells
  3. func getCellDataAssigner() -> ((UITableViewCell, AutocompletableOption) -> Void): returns a method that instruct Autocomplete how to assign an object that conforms to AutocompletableOption to a subclass of a UITableViewCell
  4. func animationForInsertion() -> UITableView.RowAnimation: returns animation that is used when inserting new items into Autocomplete
  5. func animationForDeletion() -> UITableView.RowAnimation: returns animation that is used when removing existing items from Autocomplete

AutocompletableOption

A protocol that uses for datasource of Autocomplete UITableViewCells. If you want to customize autocomplete cell to have more data items, you need to create an object that conforms to this.

TODOs

There is a plan to add support multiple sections for Autocomplete.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].