Skip to content

KeyboardKit is a Swift library that helps you build custom keyboard extensions.

License

Notifications You must be signed in to change notification settings

KodaKoder/KeyboardKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 8, 2022
b3e4728 ยท Nov 8, 2022
Jun 2, 2020
Dec 1, 2020
Nov 7, 2022
Nov 2, 2022
Oct 8, 2022
Sep 30, 2022
Nov 8, 2022
Nov 6, 2022
Jan 6, 2022
Sep 25, 2021
Nov 2, 2022
Feb 17, 2021
Nov 7, 2022
Sep 1, 2022
Oct 27, 2022
Nov 6, 2022

Repository files navigation

KeyboardKit Logo

Version Swift 5.6 MIT License Twitter: @getkeyboardkit

About KeyboardKit

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.

Supported Platforms

KeyboardKit supports iOS 13, macOS 11, tvOS 13 and watchOS 6.

Although KeyboardKit builds on all platform, some features are unavailable on some platforms.

Installation

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.

Getting started

The online documentation has a getting-started guide that will help you get started with the library.

Documentation

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.

Note that extensions to native types are not included in this documentation. Future versions of this library will refactor the extensions in a way that makes them appear in the documentation.

๐ŸŒ Localization

KeyboardKit is localized in 50+ keyboard-specific locales (read more):

๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ฆ๐Ÿ‡ฑ ๐Ÿ‡ฆ๐Ÿ‡ช ๐Ÿ‡ง๐Ÿ‡พ ๐Ÿ‡ง๐Ÿ‡ฌ ๐Ÿ‡ฆ๐Ÿ‡ฉ ๐Ÿ‡ญ๐Ÿ‡ท ๐Ÿ‡จ๐Ÿ‡ฟ ๐Ÿ‡ฉ๐Ÿ‡ฐ ๐Ÿ‡ณ๐Ÿ‡ฑ
๐Ÿ‡ง๐Ÿ‡ช ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ช๐Ÿ‡ช ๐Ÿ‡ซ๐Ÿ‡ด ๐Ÿ‡ต๐Ÿ‡ญ ๐Ÿ‡ซ๐Ÿ‡ฎ ๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿ‡จ๐Ÿ‡ญ ๐Ÿ‡ฌ๐Ÿ‡ช ๐Ÿ‡ฉ๐Ÿ‡ช
๐Ÿ‡ฆ๐Ÿ‡น ๐Ÿ‡ฌ๐Ÿ‡ท ๐Ÿ‡ฎ๐Ÿ‡ฑ ๐Ÿ‡ญ๐Ÿ‡บ ๐Ÿ‡ฎ๐Ÿ‡ธ ๐Ÿ‡ฎ๐Ÿ‡ช ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡น๐Ÿ‡ฏ ๐Ÿ‡ฑ๐Ÿ‡ป ๐Ÿ‡ฑ๐Ÿ‡น
๐Ÿ‡ฒ๐Ÿ‡ฐ ๐Ÿ‡ฒ๐Ÿ‡น ๐Ÿ‡ฒ๐Ÿ‡ณ ๐Ÿ‡ณ๐Ÿ‡ด ๐Ÿ‡ฎ๐Ÿ‡ท ๐Ÿ‡ต๐Ÿ‡ฑ ๐Ÿ‡ต๐Ÿ‡น ๐Ÿ‡ง๐Ÿ‡ท ๐Ÿ‡ท๐Ÿ‡ด ๐Ÿ‡ท๐Ÿ‡บ
๐Ÿ‡ท๐Ÿ‡ธ ๐Ÿ‡ธ๐Ÿ‡ฐ ๐Ÿ‡ธ๐Ÿ‡ฎ ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ฐ๐Ÿ‡ช ๐Ÿ‡ธ๐Ÿ‡ช ๐Ÿ‡น๐Ÿ‡ท ๐Ÿ‡บ๐Ÿ‡ฆ ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ง๐Ÿ‡ช

โœจ Features

KeyboardKit comes packed features to help you build amazing and powerful keyboards:

  • ๐Ÿ’ฅ Actions - KeyboardKit comes with keyboard actions like characters, emojis, actions, custom ones etc.
  • ๐ŸŽจ Appearances - KeyboardKit comes with an appearance engine that lets you easily style your keyboards.
  • ๐Ÿ’ก Autocomplete - KeyboardKit can present autocomplete suggestions as the user types.
  • ๐Ÿ—ฏ Callouts - KeyboardKit can show input callouts, as well as long press callouts with secondary actions.
  • ๐Ÿ˜Š Emojis - KeyboardKit defines emojis and emoji categories that you can use in your own keyboards.
  • ๐Ÿงฉ Extensions - KeyboardKit provides a bunch of extensions to native types.
  • โŒจ๏ธ External Keyboards - KeyboardKit lets you detect whether or not an external keyboard is used.
  • ๐Ÿ‘‹ Feedback - KeyboardKit keyboards can give and haptic feedback feedback as the user types.
  • ๐Ÿ‘† Gestures - KeyboardKit comes with keyboard-specific gestures that you can use in your own keyboards.
  • ๐Ÿ”ค Input Sets - KeyboardKit supports creating alphabetic, numeric and symbolic and custom input sets.
  • โŒจ๏ธ [Keyboard Layouts][Keyboard-Layouts] - KeyboardKit supports creating keyboard layouts for various devices, locales etc.
  • ๐Ÿ’ฑ Keyboard Types - KeyboardKit supports keyboard types, like alphabetic, numeric, symbolic etc.
  • ๐ŸŒ Locales- KeyboardKit defines keyboard-specific locales with localized content and assets.
  • ๐Ÿ‘ Previews - KeyboardKit defines a bunch of tools that simplify previewing keyboard views in SwiftUI.
  • โžก๏ธ Proxy - KeyboardKit defines a bunch of extensions to UITextDocumentProxy.
  • โฌ…๏ธ RTL - KeyboardKit supports RTL (right-to-left) locales, such as Arabic, Persian, Kurdish etc.
  • ๐ŸŽจ Styles - KeyboardKit defines a bunch of styles that simplify customizing the look of various components.
  • ๐Ÿš Text Routing - KeyboardKit lets you route text to other destinations than the main app.
  • ๐Ÿ–ผ Views - KeyboardKit comes with a bunch of keyboard-specific views, like keyboards, toobars, buttons etc.

KeyboardKit Pro

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.

Demo Applications

This project contains a Demo folder with two 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 uses a SystemKeyboard to mimic a native English keyboard.
  • Unicode uses a SystemKeyboard and a custom, unicode-based input set.
  • Custom shows you how to easily customize input sets and layouts.

ProDemo uses KeyboardKit Pro and supports 50+ locales, autocomplete etc. It has two keyboards:

  • System LTR uses a SystemKeyboard with all left-to-right locales.
  • System RTL uses 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.

Support

KeyboardKit is trusted and proudly sponsored by the following companies:

Oribi Icon phonetoroam Icon Vitalis Icon LetterKey Icon Anomaly Software Icon Milo Creative Icon

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.

Contact

Feel free to reach out if you have questions or if you want to contribute in any way:

License

KeyboardKit is available under the MIT license. See the LICENSE file for more info.

About

KeyboardKit is a Swift library that helps you build custom keyboard extensions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 99.4%
  • Ruby 0.6%