KeyboardKit 6.6 is out
Nov 26, 2022 ·
KeyboardKit 6.6 is out, with a brand new gesture engine, new emoji capabilities and a bunch of adjustments and bug fixes to make the typing experience better than ever before.
New gesture engine
KeyboardKit 6.6 adds a new gesture engine that aims to make typing feel more like it does in the native keyboards. This engine is also applied to the emoji keyboards, which means that you have the same gestures, as well as support for input and action callouts.
Since typing is such an important part of this library, the new gesture engine can be toggled off if you find problems with it:
FeatureToggle.shared.toggleFeature(.newButtonGestureEngine, .off)
Note that the new gesture engine is only available in iOS 14+. Devices running iOS 13 will get the old gesture engine, even if you toggle on this feature.
New emoji capabilities
KeyboardKit 6.6 adds new emoji capabilities, such as a unicode id and name, as well as support for skin tone variants (Pro feature).
For instance, you can now get additional emoji information, such as a unique unicode identifier and the unicode-based name of an emoji:
let emoji = Emoji("😀")
let emojiId = emoji.unicodeIdentifier // -> \\N{GRINNING FACE}
let emojiName = emoji.unicodeName // -> Grinning Face
This means that it will now be possible to localize all emojis and implement features such as search on top of this information.
Furthermore, KeyboardKit Pro unlocks skin tone variant information, such as:
Emoji("👍").hasSkinToneVariants // true
Emoji("🚀").hasSkinToneVariants // false
Emoji("👍🏿").neutralSkinToneVariant // 👍
Emoji("👍").skinToneVariants // 👍👍🏻👍🏼👍🏽👍🏾👍🏿
Emoji("👍").skinToneVariantActions // The above variants as keyboard actions
This is used by the emoji keyboards, which means that tapping an emoji with show an input callout, and long pressing emojis that have skin tone variants will show a callout with these variants.
New buttons
The two new buttons that are used to enable the new keyboard button gestures - GestureButton
and ScrollViewGestureButton
- are now available to use in any way you want. Just make sure to consider accessibility before you add complex gestures to a view.
Conclusion
KeyboardKit 6.6 adds a lot of new things, which hopefully makes your keyboards feel even closer to the native keyboards. Other than that, it’s a pretty large release, so see the release notes for more details about this release.
Discussions & More
If you found this interesting, please share your thoughts on Bluesky, Mastodon, and X. Also make sure to follow to be notified when new content is published.