Trying to bind a toggle Binding (swiftui) to a bool in user realm, but cannot figure it out.
- User logs in;
- User realm passed to main application as user object
@ObservedRealmObject **var** userRealm: User
User model has a bool field, “isVisible”, how to I create my binding var to a toggle that let’s user change it’s visibility ?
It’s seems easy, but cannot get it done.