KeyboardKitSwiftUI extends KeyboardKit with
It's temporarily a separate framework, since Xcode can't handle iOS 13 features in a framework that targets iOS 11. When this is fixed, this library will be included in the main project.
Swift Package Manager
The easiest way to add KeyboardKitSwiftUI to your project in Xcode 11 is to use Swift Package Manager:
target 'HostApp' do pod 'KeyboardKitSwiftUI' end target 'KeyboardExt' do pod 'KeyboardKitSwiftUI' end
To manually add
KeyboardKitSwiftUI to your app, clone this repository, add
KeyboardKitSwiftUI.xcodeproj to your project and
KeyboardKitSwiftUI.framework as an embedded app binary and target dependency.
KeyboardKitSwiftUI offers new views and tools that helps you build keyboards in SwiftUI.
I will add readmes and demos of these later. Until then, I hope that the code speaks for itself.
Feel free to reach out if you have questions or if you want to contribute in any way:
KeyboardKitSwiftUI is proudly supported by the following clients:
KeyboardKitSwiftUI is available under the MIT license. See LICENSE file for more info.
You may find interesting
- 2020-03-20 15:56:20
This version adds a missing dependency to KeyboardKit.
- 2020-03-20 15:55:18
This version adds the first (and so far limited) support for
SwiftUI. Many new features are iOS 13-specific.
There are some new views that can be used in SwiftUI-based apps and keyboard extensions:
KeyboardGriddistributes actions evenly within a grid.
KeyboardGridRowis used for each row in the grid.
KeyboardHostingControllercan be used to wrap any
Viewin a keyboard extension.
KeyboardImageButtonview lets you show an
NextKeyboardButtonsets itself up with a
globeicon and works as a standard "next keyboard" button.
PersistedKeyboardSettingis a new property wrapper for persisting settings in
as well as some extensions:
Color.clearInteractablecan be used instead of
.clearto allow gestures to be detected.
Image.globereturns the icon that is used for "next keyboard".
setup(with:View)sets up a
withClearInteractableBackground()can be used to make an entire view interactable.