Open hooczech opened 2 weeks ago
just have quick look and didn't try on my computer
so you are passing the TextView
as a binding which is a reference type
that is not the recommend way to monitoring the change
possible a solution:
try make the text string
as a binding not the TextView
, then you can monitor the change of text instead of textView.text
What happened?
Checking whether user did any changes to the text does not work, onChange function does not fire
What are the steps to reproduce?
We want to check if there is any text addition to the editor by user. We use SwiftUI.
We have simple wrapper as:
We have follwing way to try to check for user input/changes, however this is never called when user interacts with the text
What is the expected behavior?
fire the onChange function