From 2cef32ed29eaffc987e8aea6f17d925c46955dd4 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Thu, 20 Feb 2025 00:06:07 +0800 Subject: [PATCH] fix --- dimensionhub/Views/IndexView.swift | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dimensionhub/Views/IndexView.swift b/dimensionhub/Views/IndexView.swift index 6e0124e..8b48fc8 100644 --- a/dimensionhub/Views/IndexView.swift +++ b/dimensionhub/Views/IndexView.swift @@ -74,6 +74,7 @@ struct IndexView: View { } // 基于日期的更新列表 + ScrollView(.vertical, showsIndicators: false) { LazyVStack { ForEach(showUpdateDramas.indices, id: \.self) { index in @@ -88,12 +89,8 @@ struct IndexView: View { Color.clear.onChange(of: geometry.frame(in: .global).minY) {_, offset in let frame = geometry.frame(in: .global) let screenBounds = UIScreen.main.bounds - /* - if frame.intersects(screenBounds) { - print("call me here11") - } - */ - if screenBounds.height - frame.minY > 50 { + + if screenBounds.height - frame.minY > 50 && !isLoading { print("call me here") Task { await self.loadMoreUpdateDramas()