Post

Replies

Boosts

Views

Activity

Reply to 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))
Jun ’22