Hi Mporto! I'm happy that you like the article and that you are using the code.

For what concern your question, I guess that the only solution is to add a button in the GUI and to attach the `onCommit` closure to that button.

The problem is that the keyboard does not allow you to trigger the execution of that closure from the keyboard itself, so we need to do that in some other way.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Riccardo Cipolleschi
Riccardo Cipolleschi

Written by Riccardo Cipolleschi

Hey there, I’m Riccardo. Software engineer at Meta. I have a passion for iOS and I love to share my knowledge with others.

No responses yet

Write a response