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))
Post
Replies
Boosts
Views
Activity
how can you bind a function