We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e8b7a1 commit bbf26a8Copy full SHA for bbf26a8
1 file changed
DevLog/UI/Home/TodoListView.swift
@@ -302,12 +302,10 @@ struct TodoListView: View {
302
.background {
303
GeometryReader { geometry in
304
Color.clear
305
- .onAppear {
306
- headerHeight = geometry.size.height.rounded()
307
- }
308
- .onChange(of: geometry.size.height) { _, height in
+ .onChange(of: geometry.size.height, initial: true) { _, height in
309
headerHeight = height.rounded()
310
}
+
311
312
313
0 commit comments