mutualmobile / VIPER-SWIFT

An example Todo list app written in Swift using the VIPER architecture.
MIT License
504 stars 185 forks source link

Add wireframe shouldn't know the presentation style #10

Open Koshub opened 8 years ago

Koshub commented 8 years ago

Add wireframe shouldn't know the presentation style. It should be a list wireframe responsibility to decide what presentation style (modal or push) to use. The better approach is to use segues with module configurator object stored in module view controller scene which initialises module while nib is loading: http://www.slideshare.net/Rambler-iOS/viper-swift

AliqueWilliams commented 7 years ago

@Koshub Do you have an example on GitHub where this is done right?

Koshub commented 7 years ago

@AliqueWilliams currently I don't think that the VIPER at all is right approach. It is better to develop app architecture using SOLID principles

AliqueWilliams commented 7 years ago

SOLID principles are independent of your apps architecture though and VIPER utilizes many of them anyway