Hi Andy, that’s a great point! I am sure that there potentially can be a better way to do it (there is always a better way to do something right? ) but for now I think that this is not going to be a performance issue, If my knowledge about value types is correct the struct viewModel will be allocated on the stack which cause less memory management than using a class, anyway I will love to find out a better way to do MVVM, what do you think?

Written by

Senior iOS Engineer #latinintech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store