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
@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.
@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.