Text Document Proxy Utilities
Make the text document proxy do more
Custom keyboards use a text document proxy to integrate with the currently active text field. It lets you insert and delete text, get the selected text, move the input cursor, etc.
The native proxy APIs are however very limited, which makes it hard to get information about the text and to perform many common keyboard operations.
KeyboardKit extends the proxy with more features to let you do more, like getting the currentWord
and info like isCursorAtNewSentence
, and to deleteBackward(range:)
, endSentence(withText:)
, etc.
π KeyboardKit Pro
KeyboardKit Pro unlocks additional text document proxy capabilities, like the ability to read the full document context, instead of the limited text that the native APIs return.
let proxy = keyboardContext.textDocumentProxy
let result = try await proxy.fullDocumentContext(...)
KeyboardKit Pro also makes it possible to replace the main text document proxy with a custom one. This is used by the text input components, to let you type within the keyboard extension.
Documentation
The information on this page is shortened to be easier to overview. For more information, see the online KeyboardKit documentation.
Features
KeyboardKit has a lot of core features. You can upgrade to KeyboardKit Pro to unlock pro features. Features that are marked with pro below are exclusive to KeyboardKit Pro.
Essentials
KeyboardKit provides essential models, features & views.
Keyboard View
KeyboardKit has a native-looking, customizable keyboard view.
Actions
KeyboardKit lets you trigger and customize keyboard actions.
AI Support
KeyboardKit Pro unlocks features that are needed for AI keyboards.
App Utilities
KeyboardKit has tools for setting up great keyboard apps.
Autocomplete
KeyboardKit Pro unlocks local autocomplete and predictions.
Callouts
KeyboardKit can show input and secondary action callouts.
Clipboard
KeyboardKit Pro can manage the system clipboard and user clips.
Device Utilities
KeyboardKit can identify device types, capabilities, etc.
Dictation
KeyboardKit Pro can trigger dictation from the keyboard.
Emojis
KeyboardKit has emojis models, an emoji keyboard, etc.
Escrow
KeyboardKit Pro offers Escrow Services to enterprise customers.
External Keyboards
KeyboardKit Pro can detect if an external keyboard is connected.
Feedback
KeyboardKit can trigger audio & haptic feedback.
Fonts
KeyboardKit Pro lets you type with custom unicode fonts.
Gestures
KeyboardKit can trigger & handle rich keyboard gestures.
Host Application
KeyboardKit Pro can identify and open specific applications.
Layout
KeyboardKit has dynamic and fully customizable layout engine.
Localization
KeyboardKit supports 75 locales, with localized assets & layouts.
Navigation
KeyboardKit lets you open urls and apps from the keyboard.
Previews
KeyboardKit has built-in support for SwiftUI and in-app previews.
Proxy Utilities
KeyboardKit can access the full document content in more ways.
Settings
KeyboardKit has tools for in-app settings & System Settings.
Status
KeyboardKit can detect & handle keyboard and Full Access states.
Text Input
KeyboardKit Pro unlocks tools to let you type within the keyboard
Styling
KeyboardKit lets you design your own beautiful keyboard styles.
Themes
KeyboardKit Pro unlocks a theme engine with many themes.