Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performing navigation in mvvm with RxSwift

Iam using MVVM with RxSwift i have tried Coordinator and RxFlow to navigate between viewcontroller. Is there any simply approach to segue between viewcontroller with RxSwift

  viewModel.users.subscribe {
                            model in


                            self.walkthrough = WalkthroughModel(country: (model.element?.country)!, countryCode: (model.element?.countryCode)!,PhoneNumber:"")

                            DispatchQueue.main.async {
                                self.performSegue(withIdentifier: "Walkthrough_phone", sender: self)
                            }
                        }.dispose() 

these the normal approach iam doing right now but is there any way to bind segu to the button

like image 451
Guru Charan Avatar asked Nov 23 '25 19:11

Guru Charan


1 Answers

RxFlow may become the answer.

RxFlow is a navigation framework for iOS applications based on a Reactive Flow Coordinator pattern

https://github.com/RxSwiftCommunity/RxFlow

like image 117
M Inomata Avatar answered Nov 26 '25 09:11

M Inomata