ComposablePresents - improved presentation and navigation? #1103
rcarver
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
@rcarver Very cool stuff, thanks for sharing! Looking forward to diving into it. We have plans on the horizon to provide better navigation support directly in TCA (we've been refining our ideas for awhile, but they are finally coming together), and from a quick look it seems like some of our ideas overlap with yours! Your explorations will surely further inspire us 😄 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all - I had an idea for how to model presentation/navigation (optional state and effects) and it's looking promising.
https://github.com/rcarver/composable-presents
It takes some of my favorite ideas from ComposablePresentation, SwiftUINavigation, and TCA's
BindableState
and adds a proper domain model for transitioning between states. That's all hidden behind a simple property wrapper and higher order reducer.I haven't put it to the test in my real app yet, but the test suite and included example app are feeling really good. I wanted to get smarter people's eyes on it for feedback and interest before going further.
Thanks to @mbrandonw and @stephencelis for providing such a solid foundation, I hope this can add something to the space!
Here's a full example from the README. Check out the examples and tests for more usage. See also background and goals for more context.
The child/presented domain —
The parent/presenter domain —
Beta Was this translation helpful? Give feedback.
All reactions