Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 1 replies, 0 views
Replied In
Binding a function from ObservableObject
i found a fix
binding it in ButtonComponent just like i did for loading variable like so
@Binding var userMdl: UserModel
Then in the UserView when calling the ButtonComponent i bind the userModel state object like so..
ButtonComponent(loading: $loading, userMdl: .constant(userModel))