Reference to your situation ,
What if we have two closures `performPushToHome` and `performPushToChangePassword` bind with a viewModel and when user tap on login button it call some method on viewModel and viewModel calculate business logic where to push then call appropriate closure .

Is this logic breaking MVVM rules?
Thanks

Senior iOS Engineer | HungerStation | Delivery Hero

Love podcasts or audiobooks? Learn on the go with our new app.