iamsteveholmes
04/07/2021, 5:52 PMimport Foundation
import TodoLib
class TodoListViewProxy: BaseMviView<TodoListViewModel, TodoListViewEvent>, TodoListView, ObservableObject {
@Published var model: TodoListViewModel?
override func render(model: TodoListViewModel) {
self.model = model
}
}
Where is the TodoListViewModel generated?
If I set up a preview here and there was data being accessed from the model (using sqldelight in this case), would we expect the preview to show the data?Arkadii Ivanov
04/07/2021, 6:00 PMViewProxy
, and you don't need to deal with NavigationLink
etc.iamsteveholmes
04/08/2021, 12:36 AMArkadii Ivanov
04/08/2021, 8:20 AMiamsteveholmes
04/08/2021, 5:17 PMArkadii Ivanov
04/08/2021, 6:28 PM