Replies: 1 comment 1 reply
-
For "ephemeral" things that auto-dismiss, like alerts and confirmation dialogs, there's not much of a difference, but when you are presenting full child features,
You can learn more in our documentation: https://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/whatisnavigation |
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
-
I'm walking through the SwiftUICaseStudies and I came across a question for the
01-GettingStarted-AlertsAndConfirmationDialogs
chapter: What can I benefit from @presents? I've done experiment removing the macro:and corresponding change of the reducer body:
and then it runs just like before.
I've checked the document and learnt that it's useful for writing tests. I did another experiment to run the test with my altered code and the tests all passed.
Could someone advises me on what scenarios I should use @presents macro? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions