tailec / ios-architecture

A collection of iOS architectures - MVC, MVVM, MVVM+RxSwift, VIPER, RIBs and many others
MIT License
1.48k stars 185 forks source link

Mvvm closures #3

Closed amadeu01 closed 5 years ago

amadeu01 commented 5 years ago

Added MVVM with closures

amadeu01 commented 5 years ago

@tailec I'm gonna change this PR.

I'm gonna remove the first commit. Moreover, I saw something that I did wrong with the closures.

tailec commented 5 years ago

@amadeu01 💯 What about removing ReposViewModelOutput and add closures as variables in view model? Like, here https://github.com/tailec/ios-architecture/issues/4 Also you could leave the comment or smth that outputs can be defines as protocol etc etc.

Let's make it super simple so people that are new to iOS dev don't get overwhelmed

amadeu01 commented 5 years ago

@tailec sorry the delay, I'm gonna fix it. Then, update the PR

amadeu01 commented 5 years ago

@tailec check it now. Look if it is fine for you!

tailec commented 5 years ago

Great!