You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm curious if you can use Projections for write transactions (in the case of nested objects). This to simplify code for both presentation, view updates, and realm writes in swiftui.
Example: a Person class with an optional Dog object.
Views:
– parent view with details of person and dog, and computed values.
– settings view, a sheet loaded from parent view modifying any value from person or nested dog object.
Expected results
parent view is updated on change
can write to projected object passed to settings view, or a simple way to extract the person object
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm curious if you can use Projections for write transactions (in the case of nested objects). This to simplify code for both presentation, view updates, and realm writes in swiftui.
Example: a Person class with an optional Dog object.
Views:
– parent view with details of person and dog, and computed values.
– settings view, a sheet loaded from parent view modifying any value from person or nested dog object.
Expected results
My actual views are more complex
Beta Was this translation helpful? Give feedback.
All reactions