From cf6a2b4d587a82fae90af1ee2e539bb17f604b42 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Thu, 10 Apr 2025 17:01:57 +0800 Subject: [PATCH] fix --- dimensionhub/Views/Index/IndexMainView.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dimensionhub/Views/Index/IndexMainView.swift b/dimensionhub/Views/Index/IndexMainView.swift index dd6a245..306345b 100644 --- a/dimensionhub/Views/Index/IndexMainView.swift +++ b/dimensionhub/Views/Index/IndexMainView.swift @@ -79,10 +79,9 @@ struct IndexMainView: View { Rectangle() .frame(height: 0) .background(GeometryReader { geometry in - Color.clear - .onChange(of: geometry.frame(in: .global).minY) { oldValue, newValue in - footerPublisher.send(Int(newValue)) - } + Color.clear.onChange(of: geometry.frame(in: .global).minY) { _, newValue in + footerPublisher.send(Int(newValue)) + } }) ProgressView() @@ -148,7 +147,7 @@ struct IndexMainView: View { cancel = footerPublisher .debounce(for: 0.1, scheduler: RunLoop.main) .sink { offset in - guard !footerRefreshing else { + guard !footerRefreshing && !showDateNavPopover else { return }