Updated my #DevDiary finally, explaining how I've come to understand #ViewModels in the context of #SwiftUI and how it's made #Fieldwork much nicer to develop and preview

falsevictories.com/devdiary/#2

@iain that’s similar to how I would want it to work. Your InfoView shouldn’t give a shit if the info came from a Recording or was just a bunch of disparate params. Your way has it neatly decoupled 👍

@mo yeah but so many guides complicate it with extra objects which works for their very simple examples but as soon as you start having more complex objects it gets much harder managing state.

Sign in to participate in the conversation
NI Tech

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!