jeudi 16 mai 2019

Is it wise to use MVVM with a static screen in iOS?

I have a very basic screen with few labels containing informative/static text (which will never change), an image and two buttons.

Tapping on first button should lead to a second screen. Tapping on second button should lead to a third screen.

Is it wise to use MVVM design pattern in such a simple use case? Or shall I just create the scene in Storyboard - hard code the label texts and image in UIImageView, have segues for the two buttons to lead to respective second or third screens?

If I intend to use MVVM, how shall I be doing it? What should go into the model and view model classes?

Aucun commentaire:

Enregistrer un commentaire