--

that is one approach, nice one.

another would be to have ViewModel as interface and have fake implementation that you will use in the preview. that comes for free if you are doing TDD and you already have interface, fake and all but if you don't that would be a lot of boilerplate.

your approach works in every case tho.

one with using fake ViewModel is more interactive and you can use preview like normal app.

--

--

No responses yet