Skip to content

Commit 2ba39fa

Browse files
authored
[#106] List의 row에 이미지가 있을 때 seperator의 패딩이 조절되는 문제를 해결한다 (#117)
* ui: SearchView와 동일한 height로 row를 쓰기 위해 inset 조절 * fix: 이미지가 포함되어 있어도 동일한 seperator 위치에 있도록 해결
1 parent 83a37e5 commit 2ba39fa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

DevLog/UI/Home/TodoListView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ struct TodoListView: View {
3232
} label: {
3333
TodoItemRow(todo)
3434
}
35+
.listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))
36+
.alignmentGuide(.listRowSeparatorLeading) { _ in return 0 }
3537
.onAppear {
3638
let lastID = viewModel.state.todos.last?.id
3739
if todo.id == lastID, viewModel.state.hasMore {

0 commit comments

Comments
 (0)