Skip to content

Commit 5ddce10

Browse files
committed
feat: NavigationLink(value: ) 형태로 변경하여 우측에 chevon 추가
1 parent 19a665a commit 5ddce10

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

DevLog/UI/Home/HomeView.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ struct HomeView: View {
3232
let preferences = viewModel.state.todoKindPreferences
3333
ForEach(preferences.filter { $0.isVisible }, id: \.id) { preference in
3434
let kind = preference.kind
35-
Button(action: {
36-
router.push(Path.kind(kind))
37-
}) {
35+
NavigationLink(value: Path.kind(kind)) {
3836
HStack {
3937
RoundedRectangle(cornerRadius: 8)
4038
.fill(kind.color)
@@ -78,9 +76,7 @@ struct HomeView: View {
7876
}
7977
} else {
8078
ForEach(viewModel.state.pinnedTodos, id: \.id) { todo in
81-
Button {
82-
router.push(Path.detail(todo))
83-
} label: {
79+
NavigationLink(value: Path.detail(todo)) {
8480
HStack {
8581
RoundedRectangle(cornerRadius: 8)
8682
.fill(todo.kind.color)
@@ -117,6 +113,7 @@ struct HomeView: View {
117113
.listRowInsets(EdgeInsets())
118114
})
119115
}
116+
.listStyle(.insetGrouped)
120117
}
121118
}
122119
.navigationTitle("")

0 commit comments

Comments
 (0)