lukeredpath / swift-responsive-textfield

A SwiftUI wrapper around UITextField with binding-based state and responder control
Apache License 2.0
85 stars 15 forks source link

Unable to update UIReturnKeyType realtime #20

Open anroswart opened 2 months ago

anroswart commented 2 months ago

Hi, we are using your package and noticed that we can not change the keyboard return button from .done to .search dynamically.

After altering you code as follows it started to work:

image

Is this perhaps something you can look into adding to a future version of your package?

lukeredpath commented 2 months ago

I'm happy to accept a PR.

anroswart commented 2 months ago

Hi @lukeredpath, thanks a lot. Do you perhaps want to give me access to push to your repository in order to push a new branch for the PR?

anroswart commented 2 months ago

Please ignore my previous request, here is a PR: https://github.com/lukeredpath/swift-responsive-textfield/pull/21 🙏