Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


Add word completion to your UITextFields.

Subscribe to updates I use AutocompleteField

Statistics on AutocompleteField

Number of watchers on Github 651
Number of open issues 6
Main language Swift
Open pull requests 5+
Closed pull requests 0+
Last commit over 4 years ago
Repo Created over 4 years ago
Repo Last Updated over 2 years ago
Size 17 KB
Homepage http://iosdev.io/...
Organization / Authorfilipstefansson
Latest Release1.1
Page Updated
Do you use AutocompleteField? Leave a review!
View open issues (6)
View AutocompleteField activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating AutocompleteField for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


AutocompleteField let's you add word completion to your UITextFields.

Autocomplete, or word completion, is a feature in which an application predicts the rest of a word a user is typing.

How it works



Manual installation

Import AutocompleteField.swift into your project.


platform :ios, '8.0'
pod "AutocompleteField", "~> 1.1" 


The easiest way is to add a UITextField in your Storyboard, and then giving it the AutocompleteField subclass. You can use the property editor to change both the padding and the completion color of the textfield.

If you want to add a field using code, there's a custom init method you can use:

import AutocompleteField

let textField = AutocompleteField(frame: CGRectMake(10, 10, 200, 40), suggestions: ["Abraham", "George", "Franklin"])


AutocompleteField is a subclass of UITextField, so you can modify it in the same way you normally would, without any restrictions. The new properties you can set are:

Property Type Description
padding CGFloat Left/right padding.
completionColor UIColor The color of the suggestion. Defaults to the default placeholder color.
suggestion String The current suggestion shown. Can be used to force a suggestion.
suggestions [String] Array of suggestions.
autocompleteType AutocompleteType The type of autocomplete that should be used. .Word will only hint the the next word in the suggestion and .Sentence will show all words.
pixelCorrection CGFloat Move the suggestion label up or down. Sometimes there's a small difference, and this can be used to fix it.


Check out the Example project.


  • [x] Smarter suggestions. If both John Doe and John Smith are in the suggestion array, only Joe should be suggested.
  • [ ] Tests


AutocompleteField is provided under the MIT License. See LICENSE for details.

AutocompleteField open issues Ask a question     (View All Issues)
  • almost 4 years Swift 3 support
  • almost 4 years Problem when resignFirstResponder is call
  • over 4 years autocomplete by Word does not work
AutocompleteField open pull requests (View All Pulls)
  • Updated to Swift 2.2
  • bringup swift3.0
  • Swift3 support
  • Update to swift 3
  • Swift 3 conversion
AutocompleteField questions on Stackoverflow (View All Questions)
  • Open AutoCompleteField on click
  • How to make an AutoCompleteField in Eclipse just like Refactoring Dialog?
  • Why behaviour stop working with propertyModel inside autocompleteField
  • Is eclipse AutoCompleteField only suggesting entries starting with entered text?
  • BlackBerry AutoCompleteField - how to accept only a part of existing string
  • How can I get the selected text in AutoCompleteField and send it to a server via post
  • Place holder text on a AutoCompleteField in blackberry
  • BlackBerry AutoCompleteField for 4.5
  • Wrap AutoCompleteField List Item
  • Setting Autocompletefield rowheight
  • AutoCompleteField text filtering in Blackberry
  • AutoCompleteField for Blackberry 4.2
  • BB AutoCompleteField events are not being handled
  • Blackberry AutoCompleteField with first and last name
  • How to get the selected item as String in a Blackberry AutoCompleteField?
  • How to get input text into the listfield of autocompletefield in blackberry?
AutocompleteField list of languages used
AutocompleteField latest release notes
1.1 1.1
  • Added AutocompleteType
1.0 1.0
Other projects in Swift