News for hackers. Stuff that matters.
Re:Data in SwiftUI, Part 2: Views as a Function of Data by dreamer7 on Friday February 14, 2020 @09:08AM (#22326622)
Is it correct to say that SwiftUI seems to be inspired by or similar to React architecture?
Re:Data in SwiftUI, Part 2: Views as a Function of Data by 5cott0 on Friday February 14, 2020 @01:03PM (#22328614)
It does appear somewhat similar to React but the functional reactive programming influence is much more prevalent.

https://github.com/CombineCommunity/rxswift-to-combine-cheat...

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.
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.
Re:Data in SwiftUI, Part 2: Views as a Function of Data by tebbers on Friday February 14, 2020 @09:41AM (#22326921)
I believe so (speaking as a React developer for the last few years). I'm sure a few people at Apple have looked longingly at React Native and the concepts there.