Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paescebu authored Aug 9, 2023
1 parent 60b2360 commit 3d31b6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ struct ContentView: View {
TextField("", text: $text)
.customKeyboard { textDocumentProxy, onSubmit, playFeedback in
VStack {
numberButton(text: "1", uiTextDocuemntProxy: textDocumentProxy, playFeedback: playFeedback)
numberButton(text: "2", uiTextDocuemntProxy: textDocumentProxy, playFeedback: playFeedback)
numberButton(text: "1", uiTextDocumentProxy: textDocumentProxy, playFeedback: playFeedback)
numberButton(text: "2", uiTextDocumentProxy: textDocumentProxy, playFeedback: playFeedback)
Button("DEL") {
textDocumentProxy.deleteBackward()
playFeedback?()
Expand All @@ -104,9 +104,9 @@ struct ContentView: View {
}
}

func numberButton(text: String, uiTextDocuemntProxy: UITextDocumentProxy, playFeedback: (() -> ())?) -> some View {
func numberButton(text: String, uiTextDocumentProxy: UITextDocumentProxy, playFeedback: (() -> ())?) -> some View {
Button(text) {
uiTextDocuemntProxy.insertText(text)
uiTextDocumentProxy.insertText(text)
playFeedback?()
}
}
Expand Down

0 comments on commit 3d31b6b

Please sign in to comment.