Closed snowtema closed 6 years ago
Hi @snowtema
Let me think about it and i'll get back to you ASAP (today or tomorrow).
Thanks.
@twittemb thank you
Hi @twittemb! Do you have any ideas?
Thanks.
Hi @snowtema
Sorry for the delay, I've been busy lately. Can you try something with the last 'develop' version ?
I think your approach with the .end(withStepForParentFlow: MyStep.openProfileTab) was the good one. But internally, RxFlow stops listening to the current flow (your FeedFlow) once it emits a .end().
I have added a new value for NextFlowItems -> .triggerParentFlow(withStep:) that allows to "communicate" with the parent Flow while continuing listening for the current Flow steppers.
The code is on develop, I quickly tested it on a simple app and It seemed to do what you want.
Please let me know if it fits your needs 👍
Hi @snowtema
Have you tried the solution I suggested ?
Salute @twittemb,
Sorry for late answer. Yeah, it works fine, exactly what I want! Thanks a lot for your responses and quick improvements. 👍
Great. Thanks for using RxFlow 👍
My app has tab bar navigation with two tabs (Profile and Feed).
AppFlow class implement code for tabBar:
FeedFlow class implement navigation for feed:
And I want to realize this flow:
Open app (
Profile
tab) –> ChooseFeed
tab –> Pick any news cell –> OnNews
screen click buttonSave news
–> ... and I want to dismiss navigation fromFeed Info
screen (.feedSaveNews
) to root and locateProfile
screen back.First, I tried to finish (
.end(...)
) Feed flow, it works but further, I can't open any news inFeed
. Then I tried to create one more flow for FeedInfoViewController, that I could be finished FeedInfoFlow, but I stuck with navigations problems.Can you advise something for my case?