Overview
Autocomplete is a very important part of the typing experience, where suggestions can be shown as the user types, and autocorrections can automatically correct the typed text.
KeyboardKit Pro unlocks local & remote autocomplete and automatically enables autocomplete for many of the supported languages when you register a valid license key.
Namespace
KeyboardKit has an Autocomplete
namespace that contains autocomplete-related types and views, like the Suggestion
that is returned by an AutocompleteService
when performing autocomplete.
Context
KeyboardKit has an observable AutocompleteContext
that provides observable autocomplete state, such as the suggestions
to present, as well as persistent settings like isAutocompleteEnabled
.
Services
In KeyboardKit, an AutocompleteService
can provide suggestions when the user types or the text cursor moves in the text. KeyboardKit Pro unlocks a local on-device service and a remote one.
Views
The Autocomplete
namespace has autocomplete-specific views, that can be used to mimic native autocomplete toolbars and items, such as the customizable Autocomplete.Toolbar
:
This view can be styled with the autocompleteToolbarStyle(_:)
view modifier and use custom views.
π KeyboardKit Pro
KeyboardKit Pro unlocks local and remote autocomplete, and makes KeyboardKit automatically perform autocomplete on-device as the user types, without having to write any additional code.
Local Autocomplete
An Autocomplete.LocalService
performs autocomplete locally, on-device. It supports ,many locales, works offline, doesnβt require Full Access and can integrate with system services, like a local lexicon.
Remote Autocomplete
An Autocomplete.RemoteService
can be used to perform autocomplete by calling an external API. It requires that the device is online, and requires Full Access to perform network requests.
Next Character Prediction
The LocalService
and RemoteService
will automatically perform next-character predictions based on the result. The result is used by KeyboardView
to increase the tap area of more probable keys.
Next Word Prediction (BETA)
Appleβs native text prediction utilities stopped supporting next word prediction in iOS 16, which means that we can only use it to complete and correct words that we have started typing.
KeyboardKit Pro unlocks ways to inject 3rd party support for performing next word prediction, by specifying a NextWordPredictionRequest
in your KeyboardApp
.
KeyboardKit Pro 9.0 supports Claude
integration, with more integrations coming in future versions.
Documentation
The information on this page is shortened to be easier to overview. For more information see the online documentation, or the KeyboardKit Pro documentation.
Core Features
KeyboardKit is packed with features. You can upgrade to KeyboardKit Pro to unlock pro features.
Essentials
KeyboardKit provides essential features, utilities & views.
Actions
KeyboardKit makes it easy to handle keyboard actions.
App
KeyboardKit makes it easy to set up your app and its keyboard.
Callouts
KeyboardKit can show input and secondary action callouts.
Emojis
KeyboardKit defines emojis, emoji categories, skin tones, etc.
Feedback
KeyboardKit can trigger audio & haptic feedback.
Gestures
KeyboardKit can trigger & handle rich keyboard gestures.
Layout
KeyboardKit has fully dynamic & customizable layout engine.
Localization
KeyboardKit supports 70 locales, with localized resources.
Navigation
KeyboardKit lets you open urls and apps from the keyboard.
Previews
KeyboardKit has built-in support for SwiftUI previews.
Proxy Utilities
KeyboardKit lets the document proxy do a LOT more.
Settings
KeyboardKit has tools for in-app settings & System Settings.
Status
KeyboardKit detects if a keyboard is enabled, has full access, etc.
Styling
KeyboardKit lets you style your keyboards to great extent.
π Pro Features
KeyboardKit Pro unlocks powerful pro features to take your keyboard extension to the next level.
Essentials
KeyboardKit Pro unlocks more essential views & utilities.
AI Support
KeyboardKit Pro unlocks features that are needed for AI.
App
KeyboardKit Pro unlocks app-specific screens & views.
Autocomplete
KeyboardKit Pro unlocks local & remote autocomplete.
Callouts
KeyboardKit Pro unlocks callout actions for all locales.
Dictation
KeyboardKit Pro can trigger dictation from the keyboard.
Emoji Keyboard
KeyboardKit Pro unlocks an emoji keyboard & search capabilities.
External Keyboards
KeyboardKit Pro can detect if an external keyboard is being used.
Host
KeyboardKit Pro can identify and open specific host applications.
Layout
KeyboardKit Pro unlocks input sets & layouts for all locales.
Localization
KeyboardKit Pro unlocks support for 70 locales.
Previews
KeyboardKit Pro unlocks in-app keyboard & theme previews.
Proxy Utilities
KeyboardKit Pro makes the proxy able to read the full document.
Text Input
KeyboardKit Pro unlocks tools to let you type within the keyboard
Themes
KeyboardKit Pro unlocks a theme engine & many standard themes.