File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( " 홈 " )
You can’t perform that action at this time.
0 commit comments