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
Take a look at @dynamicMemberLookup and @environmentObject...
/// The value referenced by the binding. Assignments to the value
/// will be immediately visible on reading (assuming the binding
/// represents a mutable location), but the view changes they cause
/// may be processed asynchronously to the assignment.
SwiftTEA should be able to do this.
I am really wondering now if a Redux or Elm like framework are really necessary for SwiftUI :
The SwiftUI views are read only.
Data flows one way either through @environmentObject which is really the application state or through a local state @state that you can pass to children.
Access control to the state can be enforced by making properties read-only and forcing mutation using methods.
I tried implementing a super simple example to get started:
This is my view
It works 👍
My questions:
The text was updated successfully, but these errors were encountered: