-
I am working on a TCA+SwiftUI page which invokes a page which has MVVM architecture. After the user performs an action on this MVVM page, it gets navigated back to the TCA+SwiftUI page. I want to get data like user selection back from this MVVM page to update my TCA+SwiftUI page accordingly. What are the ways I could achieve it ? I've tried using completion handlers but that seems to go into cyclic dependencies. |
Beta Was this translation helpful? Give feedback.
Answered by
ssara2003
May 26, 2022
Replies: 1 comment
-
I found the answer here: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ssara2003
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the answer here:
https://forums.swift.org/t/subscribing-for-the-changes-in-the-environment-init-body/41724