Views

KeyboardKit adds many keyboard-related views.

🌁

This page provides a short summary. Please see the online documentation for more information.

Overview

KeyboardKit has views in many different parts of the library. Some are top-level components, while others are nested in namespaces, like Callout.ActionCallout.

KeyboardKit Pro unlocks many more views than what are available in KeyboardKit, such as smart text fields, toolbars, an emoji keyboard, etc.

Essential Views

KeyboardKit has a SystemKeyboard that mimics a native iOS keyboards and can be used to create alphabetic, numeric and symbolic keyboards.

SystemKeyboard

SystemKeyboard supports all KeyboardLocales, custom layouts, callouts, and can be customized and styled to great extent, using a KeyboardStyleProvider or Pro Themes.

SystemKeyboard

SystemKeyboard even supports iPad Pro, if you upgrade to KeyboardKit Pro:

System Keyboard - iPad Pro

See the article for more information.

Autocomplete Views

KeyboardKit has an AutocompleteToolbar, that mimics a native autocomplete toolbar.

AutocompleteToolbar

The bar can be customized, and styled with KeyboardStyle/AutocompleteToolbar:

AutocompleteToolbar

See the article for more information.

Button Views

The KeyboardButton namespace defines a couple of general button types that can help you mimic native keyboard buttons (or keys).

The NextKeyboardButton can be used to trigger the system keyboard switcher function, which selects the next keyboard when tapped and shows a keyboard menu when long pressed.

NextKeyboardButton

See the article for more information.

Callout Views

KeyboardKit has a Callouts/InputCallout that can be show the currently pressed key.

InputCallout

KeyboardKit also has a Callouts/ActionCallout that can present secondary actions.

InputCallout

See the article for more infor.

Dictation

KeyboardKit Pro unlocks dictation views, like this DictationScreen and DictationBarVisualizer.

DictationScreen

See the article for more information.

Emoji Views

KeyboardKit Pro unlocks an EmojiKeyboard that mimics the native emoji keyboard.

Emoji Keyboard

See the article for more information.

Gestures

KeyboardKit has a Gestures/GestureButton and a Gestures/ScrollViewGestureButton that can be used to apply many gestures to the same button.

See the article for more information.

Images

KeyboardKit has a bunch of Image extensions that resolve to SF Symbols, for instance:.

InputCallout

KeyboardKit also has Image extensions that resolve to custom emoji assets, for instance:

InputCallout

See the article for more information.

Localization

KeyboardKit has a LocaleContextMenu that can be used to pick locales:

LocaleContextMenu

See the article for more information.

Previews

KeyboardKit Pro unlocks powerful system keyboard previews. For instance, SystemKeyboardPreview can be used to preview different configurations and themes.

System Keyboard Preview - Turkish

System Keyboard Preview - Theme

KeyboardKit Pro also unlocks a lightweight SystemKeyboardButtonPreview that can be used to preview many styles or themes at once.

System Keyboard Button Preview

See the article for more information.

Settings

KeyboardKit has a KeyboardSettingsLink that can be used to open System Settings:

KeyboardSettingsLink {
    Text("Open System Settings")
}

See the article for more information.

State

KeyboardKit has a KeyboardStateLabel that can be used to display any keyboard state:

KeyboardStateLabel

See the article for more information.

Text Routing

KeyboardKit Pro unlocks text input components that automatically register and unregister themselves as proxy when they receive and lose focus:

  • KeyboardTextField wraps a UITextField and can be used for single-line text inputs.
  • KeyboardTextView wraps a UITextView and can be used for multi-line text inputs.

See the article for more information.

Documentation

The information on this page has been shortened to be easier to overview. For more information about this feature, code samples, etc. please see the online documentation.


Read more

⌨️

Essentials

KeyboardKit comes with a bunch of essential features and types.

πŸ’₯

Actions

KeyboardKit has many keyboard actions and ways to handle them.

πŸ€–

AI Support

KeyboardKit unlocks capabilities that are needed for AI.

πŸ’‘

Autocomplete

KeyboardKit can perform autocomplete and autocorrect.

πŸ”€

Buttons

KeyboardKit can style any view as a keyboard button.

πŸ—―

Callouts

KeyboardKit can show input and secondary callouts.

🌈

Colors

KeyboardKit defines a bunch of keyboard-related colors.

πŸ“±

Device Utilities

KeyboardKit has a bunch of device-specific utilities.

🎀

Dictation

KeyboardKit can perform dictation from the keyboard.

πŸ˜€

Emojis

KeyboardKit defines an emoji type with a lot of information.

⌨️

External Keyboards

KeyboardKit can detect external keyboards.

πŸ”‰

Feedback

KeyboardKit can trigger audio and haptic feedback.

πŸ‘†

Gestures

KeyboardKit has rich, keyboard-specific gestures.

πŸ–ΌοΈ

Images

KeyboardKit defines a bunch of keyboard-related images.

πŸ”£

Layout

KeyboardKit defines dynamic input sets and keyboard layouts.

🌐

Localization

KeyboardKit supports 60+ locales.

πŸ—ΊοΈ

Navigation

KeyboardKit lets you open urls and other apps.

πŸ‘

Previews

KeyboardKit lets you preview views and components in SwiftUI.

➑️

Proxy Utilities

KeyboardKit makes the text document proxy do a LOT more.

βš™οΈ

Settings

KeyboardKit has a bunch of settings tools.

🩺

State

KeyboardKit detects if a keyboard is enabled, has full access, etc.

🎨

Styling

KeyboardKit lets you style your keyboards to great extent.

🚏

Text Routing

KeyboardKit kan route text to other places.

🍭

Themes

KeyboardKit lets you style your keyboards with themes.

🌁

Views

KeyboardKit adds many keyboard-related views.