Skip to content

Commit

Permalink
SubmitHandler not optional, and onSubmitCustomKeyboard is renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
fraune committed Mar 6, 2024
1 parent e43a113 commit 136ec27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CustomKeyboardKit/CustomKeyboardBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SwiftUI

///`CustomKeyboardBuilder` lets you build a custom keyboard in SwiftUI, together with haptic/audible feedback and callback on a "submit" button if provided in your layout
///- `UITextDocumentProxy` provides you the capability to modify the text thats in focus (e.g. inserting characters or strings, deleting backwards etc.),
///- `SubmitHandler?` closure parameter is a closure, when called triggers the registered closure (using the `.onSubmitCustomKeyboard(:)` modifier.
///- `SubmitHandler` closure parameter is a closure, when called triggers the registered closure (using the `.onCustomSubmit(action:)` modifier.
///- `SystemFeedbackHandler?` closure parameter is a closure, when called will play the keyboard system sounds and haptic feedback if enabled in the settings by the user
public class CustomKeyboardBuilder: CustomKeyboard {
public init(@ViewBuilder customKeyboardView: @escaping ((UITextDocumentProxy, @escaping SubmitHandler, SystemFeedbackHandler?) -> some View)) {
Expand Down

0 comments on commit 136ec27

Please sign in to comment.