Re:Data in SwiftUI, Part 2: Views as a Function of Data
by ericlewis on Friday February 14, 2020 @09:32AM
(#22326839)
More like Elm.
[ Parent
| on HN ]
Re:Data in SwiftUI, Part 2: Views as a Function of Data
by jamil7 on Saturday February 15, 2020 @02:43AM
(#22333946)
In what way is it more like Elm? Elm has a single global update function and model that must be passed a message in order to change state. SwiftUI view state can be mutated directly and it enforces no other architecture choices there, you can use whatever you like.