Skip to content

Commit

Permalink
Merge pull request #17 from fraune/master
Browse files Browse the repository at this point in the history
  • Loading branch information
paescebu authored Mar 6, 2024
2 parents ec14b6c + 136ec27 commit 6775ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension CustomKeyboard {
}
Button("Can you repeat the question?") {
playSystemFeedback?()
submit?()
submit()
}
}
.buttonStyle(.bordered)
Expand Down
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 6775ffa

Please sign in to comment.