Replies: 1 comment 1 reply
-
|
Hi @lucamegh, you can do this instead: @UIBindable var model = self
TextFieldModel(text: $model.name)Does that work for you?
Ideally we never have to introduce a tool like that because it destroys our ability to make bindings |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering how
UIBindings could be derived right from within an observable model.You could convert the computed property into a function that takes the binding generated by the view controller.
However, it would be far better to avoid this dance altogether.
Perhaps introducing
UIBinding(get:set:)initializer could help.Beta Was this translation helpful? Give feedback.
All reactions