Updated the "delete(_: at: from: )" function of the TaskListViewModel view model in the app target to use the Repository protocol instead.
This commit is contained in:
@@ -45,7 +45,7 @@ struct TaskListView: View {
|
||||
group: viewModel.group,
|
||||
showCompleted: viewModel.showCompleted
|
||||
) { tasks, offsets in
|
||||
viewModel.deleteTasks(
|
||||
viewModel.delete(
|
||||
tasks,
|
||||
at: offsets,
|
||||
from: modelContext
|
||||
|
||||
Reference in New Issue
Block a user