KeyboardKit is a Swift library that helps you build custom keyboards with Swift and SwiftUI. It extends the native keyboard APIs and provides you with a lot more functionality than is otherwise available.
The end result can look something like this...or entirely different:
KeyboardKit lets you create keyboards that mimic the iOS stock keyboard in a single line of code. These keyboards can be customized to great extent to change their input keys, keyboard layout, design, behavior etc.
You can also use entirely custom views with the rich features of KeyboardKit, to create completely custom keyboard extensions. Most of the KeyboardKit features can be used on all major Apple platforms as well.
KeyboardKit supports iOS 13
, macOS 11
, tvOS 13
and watchOS 6
.
Although KeyboardKit builds on all platform, some features are unavailable on some platforms.
KeyboardKit can be installed with the Swift Package Manager:
https://github.com/KeyboardKit/KeyboardKit.git
or with CocoaPods:
pod KeyboardKit
You can add the library to the main app, the keyboard extension and any other targets that need it.
The online documentation has a getting-started guide that will help you get started with the library.
The online documentation has articles, code examples etc. that let you overview the various parts of the library and understand how they all connect to each other.
The online documentation is currently iOS-specific. To generate documentation for other platforms, open the package in Xcode, select a simulator then run Product/Build Documentation
.
KeyboardKit is localized in 60 keyboard-specific locales (read more):
🇦🇱 🇦🇪 🇦🇲 🇧🇾 🇧🇬 🇦🇩 🏳️ 🇭🇷 🇨🇿 🇩🇰
🇳🇱 🇧🇪 🇺🇸 🇬🇧 🇺🇸 🇪🇪 🇫🇴 🇵🇭 🇫🇮 🇫🇷
🇧🇪 🇨🇭 🇬🇪 🇩🇪 🇦🇹 🇨🇭 🇬🇷 🇺🇸 🇮🇱 🇭🇺
🇮🇸 🇮🇩 🇮🇪 🇮🇹 🇹🇯 🇹🇯 🇹🇯 🇱🇻 🇱🇹 🇲🇰
🇲🇾 🇲🇹 🇲🇳 🇳🇴 🇮🇷 🇵🇱 🇵🇹 🇧🇷 🇷🇴 🇷🇺
🇷🇸 🇷🇸 🇸🇰 🇸🇮 🇪🇸 🇰🇪 🇸🇪 🇹🇷 🇺🇦 🇺🇿
KeyboardKit comes packed features to help you build amazing and powerful keyboards:
alphabetic
, numeric
and symbolic
and custom input sets.alphabertic
, can inspect a keyboard's state etc.UITextDocumentProxy
.KeyboardKit Pro extends KeyboardKit with pro features, such as additional locales, autocomplete engines, more extensions, additional views etc. It lets you create fully localized system keyboards with a single line of code.
KeyboardKit Pro requires a commercial license. Licenses can be purchased from the website or from Gumroad.
This project contains a Demo
folder with three demo apps that lets you try out KeyboardKit.
Demo
uses KeyboardKit and lets you type in a light and dark text field. It has three keyboards:
English
has a SystemKeyboard
with the standard, English locale.Unicode
has a SystemKeyboard
with custom, unicode-based inputs.Custom
has a completely custom input sets and keyboard layout.ProDemo
uses KeyboardKit Pro and supports all keyboard locales, LTR and RTL, autocomplete etc. It has two keyboards:
System LTR
has a SystemKeyboard
with all left-to-right locales.System RTL
has a SystemKeyboard
with all right-to-left locales.Just open and run any of these projects, then enable the keyboards you want to try under System Settings.
Note that you need to enable full access to try some features, like audio and haptic feedback.
KeyboardKit is trusted and proudly sponsored by the following companies:
KeyboardKit is open-source and completely free, but you can sponsor this project on GitHub Sponsors, upgrade to KeyboardKit Pro or get in touch for paid support.
Feel free to reach out if you have questions or if you want to contribute in any way:
KeyboardKit is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 925 |
Last commit: 2 hours ago |
This version adjusts licenses in KeyboardKit Pro, otherwise it's identical to 6.9.4.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics