Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

UIViewController transitions and MVVM #16

Open
mattsson opened this issue Jul 27, 2014 · 1 comment
Open

UIViewController transitions and MVVM #16

mattsson opened this issue Jul 27, 2014 · 1 comment

Comments

@mattsson
Copy link

Hi, thanks for the project, I'm trying to wrap my head around using MVVM with iOS and I'm failing to properly understand transitioning between different Views in the MVVM sense. Aren't you breaking the MVVM pattern by allowing a UIViewController to initialize and present another UIViewController? For example in didSelectRowAtIndexPath: in ASHMasterViewController. Aren't different Views in the MVVM pattern completely separate with no knowledge of each other, as explained in this article, specifically with this diagram:

MVVM with several Views

@etherwizard
Copy link

etherwizard commented Jan 3, 2018

@mattsson: Accomplishing what you describe in iOS would require an Inversion of Control container such as Typhoon or similar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants