From 715a1f1b83c0c0c88c7d0a348f186e726f727946 Mon Sep 17 00:00:00 2001 From: opficdev Date: Mon, 30 Mar 2026 09:41:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=BC=EB=B6=80=20=ED=95=98=EB=93=9C?= =?UTF-8?q?=EC=BD=94=EB=94=A9=EC=9C=BC=EB=A1=9C=20=ED=97=A4=EB=8D=94?= =?UTF-8?q?=EC=9D=98=20=EB=86=92=EC=9D=B4=EB=A5=BC=20=EC=A0=95=ED=99=95?= =?UTF-8?q?=ED=95=98=EA=B2=8C=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DevLog/UI/Home/TodoListView.swift | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/DevLog/UI/Home/TodoListView.swift b/DevLog/UI/Home/TodoListView.swift index cabb0c99..3bcd904b 100644 --- a/DevLog/UI/Home/TodoListView.swift +++ b/DevLog/UI/Home/TodoListView.swift @@ -12,8 +12,7 @@ struct TodoListView: View { @Environment(NavigationRouter.self) var router @Environment(\.diContainer) var container: DIContainer @Environment(\.colorScheme) private var colorScheme - @State private var headerOffset: CGFloat = 0 - @State private var headerHeight: CGFloat = .pi + @State private var headerOffset: CGFloat = .zero @State private var isScrollTrackingEnabled = false var body: some View { @@ -298,20 +297,11 @@ struct TodoListView: View { sortMenu filterMenu } - // iOS 26.4부터 헤더의 높이가 달라져서 리스트에서 필터링된 Todo가 없으면 사라지는 현상 해결 - .background { - GeometryReader { geometry in - Color.clear - .onChange(of: geometry.size.height, initial: true) { _, height in - headerHeight = height.rounded() - } - } - } } .scrollIndicators(.never) .scrollDisabled(!isScrollTrackingEnabled) .contentMargins(.leading, 16, for: .scrollContent) - .frame(height: headerHeight) + .frame(height: UIFont.preferredFont(forTextStyle: .body).lineHeight.rounded(.up) + 20) .onAppear { headerOffset = 0 isScrollTrackingEnabled = false