My #rust2020 blog: GUI and communityhttps://raphlinus.github.io/rust/druid/2019/10/31/rust-2020.html …
I can well imagine. And you were dealing with a different set of constraints, so I'm not really criticizing your choices here.
-
-
If it helps, I can try to peel away at least one layer of magic. Views used to look like this: struct MyView: View { struct State { // state went here as an assoc type } // And a Binding was passed in explicitly func body(state: MuggleBinding<State>) -> some View {…
-
And the MuggleBinding, instead of using sugar, was more explicitly an opaque handle with a bundle of the value snapshot, and a function to produce Actions from updates: state.value // old value state.update { makeSomeChangeTo(&$0) } // turn a closure updating state into Action
- 7 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.