user interaction occurs Where user interactions and changes in the model are managed View View Controller Where notifications of user interaction and model changes are acted upon
{ result in switch result { case .Success(_): dispatch_async(dispatch_get_main_queue(), { self.setScreenImages() }) case .Failure(_): print("Failed to update Prezto's currentIndex") } } ) } PresentingViewController - MVC
index RequestManager.sharedInstance.updatePreztoCurrentIndex(prezto, completion: { result in switch result { case .Success(_): dispatch_async(dispatch_get_main_queue(), { completion() }) case .Failure(_): print("Failed to update Prezto's currentIndex") } } ) } PresentingViewModel
believe that for the iOS community, MVVM is one stop along that journey, a layover to even better places… We can’t stop at MVVM, we have to keep moving. - Ash Furrow