From 5ddce10de2521435e48d7709d4dde1ff988dacd7 Mon Sep 17 00:00:00 2001 From: opficdev Date: Wed, 11 Feb 2026 23:30:38 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20NavigationLink(value:=20)=20=ED=98=95?= =?UTF-8?q?=ED=83=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=98=EC=97=AC=20?= =?UTF-8?q?=EC=9A=B0=EC=B8=A1=EC=97=90=20chevon=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DevLog/UI/Home/HomeView.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/DevLog/UI/Home/HomeView.swift b/DevLog/UI/Home/HomeView.swift index 8be6e7f..b5b9032 100644 --- a/DevLog/UI/Home/HomeView.swift +++ b/DevLog/UI/Home/HomeView.swift @@ -32,9 +32,7 @@ struct HomeView: View { let preferences = viewModel.state.todoKindPreferences ForEach(preferences.filter { $0.isVisible }, id: \.id) { preference in let kind = preference.kind - Button(action: { - router.push(Path.kind(kind)) - }) { + NavigationLink(value: Path.kind(kind)) { HStack { RoundedRectangle(cornerRadius: 8) .fill(kind.color) @@ -78,9 +76,7 @@ struct HomeView: View { } } else { ForEach(viewModel.state.pinnedTodos, id: \.id) { todo in - Button { - router.push(Path.detail(todo)) - } label: { + NavigationLink(value: Path.detail(todo)) { HStack { RoundedRectangle(cornerRadius: 8) .fill(todo.kind.color) @@ -117,6 +113,7 @@ struct HomeView: View { .listRowInsets(EdgeInsets()) }) } + .listStyle(.insetGrouped) } } .navigationTitle("홈")