diff --git a/ToD/AfterChar/ToDo/ToDoView.swift b/ToD/AfterChar/ToDo/ToDoView.swift index 2d3bf77..74b0750 100644 --- a/ToD/AfterChar/ToDo/ToDoView.swift +++ b/ToD/AfterChar/ToDo/ToDoView.swift @@ -10,12 +10,13 @@ import SwiftUI struct ToDoView: View { @AppStorage("myJobCategory") var myJob: String! - var todoDataManager: ToDoDataManager = ToDoDataManager.shared + @ObservedObject var todoDataManager: ToDoDataManager = ToDoDataManager.shared @AppStorage("isChar") var isChar: Bool = true @State private var showModal: Bool = false @State var todoCategory: Category = .dev @Environment(\.refresh) private var refresh + var body: some View { NavigationStack { VStack { @@ -146,7 +147,7 @@ struct ToDoView: View { struct ToDoListRow: View { @State var todo: ToDoModel @State var toDoList: [ToDoModel] = [] - var todoDataManager: ToDoDataManager = ToDoDataManager.shared + @ObservedObject var todoDataManager: ToDoDataManager = ToDoDataManager.shared var body: some View { NavigationLink {