Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions DevLog/UI/Home/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -117,6 +113,7 @@ struct HomeView: View {
.listRowInsets(EdgeInsets())
})
}
.listStyle(.insetGrouped)
}
}
.navigationTitle("홈")
Expand Down