From dcf82228e0dbf46372598c404877b495d86e342a Mon Sep 17 00:00:00 2001 From: MoonGoon Date: Mon, 29 May 2023 15:37:10 +0900 Subject: [PATCH] =?UTF-8?q?enhancement:=20ObservedObject=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EC=97=AC=20DataManager=EC=9D=98=20=EA=B0=92?= =?UTF-8?q?=EC=9D=B4=20=EB=B3=80=ED=99=94=EB=A5=BC=20=EA=B0=90=EC=A7=80?= =?UTF-8?q?=ED=95=98=EC=97=AC=20=EC=83=88=EB=A1=9C=20=EB=BF=8C=EB=A0=A4?= =?UTF-8?q?=EC=A3=BC=EB=8F=84=EB=A1=9D=20=ED=95=98=EC=98=80=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ToD/AfterChar/ToDo/ToDoView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {