Post

Replies

Boosts

Views

Activity

Comment on .autocorrectionDisabled() not updating with @State variable
Thanks for taking a minute to check it out and share back! We’ve discovered adding .id(autocorrectionDisabled) will “refresh” the textEditor and thusly read the new bool value. However, it causes the TextEditor to lose focus and lowers the keyboard. This won’t work for our use case. Also, we found by tapping into another textEditor, then tapping back to the first will cause the updated bool value to be used correctly. That’s also not a fit for our use case. Maybe this helps someone else!
Mar ’24