ashfurrow / C-41

C-41 is an application to help people develop film at home by providing a series of "recipes" for photographers to use.
MIT License
2.05k stars 367 forks source link

UIViewController transitions and MVVM #16

Open mattsson opened 10 years ago

mattsson commented 10 years ago

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 commented 6 years ago

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