KeyboardKit can style any view as a keyboard button.🔤
KeyboardKit has some buttons that can be used to mimic native keyboard buttons. You don’t have to use these buttons, but it can help speed up development.
KeyboardButton namespace defines button views that help you mimic native keyboard buttons:
Buttonrenders actions and custom view as a keyboard button.
Contentrenders the keyboard button content for an action.
Keyrenders a keyboard button key shape.
Shadowrenders a keyboard button bottom shadow.
SpaceContentrenders space-specific keyboard button content.
Titlerenders a keyboard button title.
You can also use the
.keyboardButton view modifier to convert any view to a keyboard button.
Next Keyboard Button
NextKeyboardButton can be used to trigger the system’s keyboard switcher function, which selects the next keyboard when tapped and shows a keyboard menu when long pressed.
The information on this page is shortened to be easier to overview. For more information about this feature, code samples, etc., please see the online documentation.