Skip to content

Commit 36541a7

Browse files
authored
[#327] TodoListView에서 스크롤을 하면 ui가 멈추는 현상을 해결한다 (#328)
* fix: rounded를 통해 과도한 수치 변화를 줄인다 * style: iOS 17 스타일 반영
1 parent d86d33e commit 36541a7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

DevLog/UI/Home/TodoListView.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,10 @@ struct TodoListView: View {
302302
.background {
303303
GeometryReader { geometry in
304304
Color.clear
305-
.onAppear {
306-
headerHeight = geometry.size.height + 1
307-
}
308-
.onChange(of: geometry.size.height) { _, height in
309-
headerHeight = height + 1
305+
.onChange(of: geometry.size.height, initial: true) { _, height in
306+
headerHeight = height.rounded()
310307
}
308+
311309
}
312310
}
313311
}

0 commit comments

Comments
 (0)