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