This commit is contained in:
anlicheng 2025-02-20 00:06:07 +08:00
parent 34e81eafd0
commit 2cef32ed29

View File

@ -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()