-
Hi, I've recently started migrating to BindableState, but in the process I've run into a situation that seems like it should have an easy answer, but I'm unable to figure it out. I'm working on a login form with the following state (simplified):
The Later, in my view, I would like to create a binding. I can't use:
While the above works, it emits the following deprecation warning: What would be the recommended way to bind a value of one type to a different type when using Thank you for any guidance you can provide! Note: I have considered just using a String and making my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If the SecureField("Password", text: viewStore.$password.secret) |
Beta Was this translation helpful? Give feedback.
-
Yup - that worked. Thank you for the quick response! |
Beta Was this translation helpful? Give feedback.
If the
secret
field inRedacted
is a mutable var, then you should be able to just do this: