fix
This commit is contained in:
parent
34e81eafd0
commit
2cef32ed29
@ -74,6 +74,7 @@ struct IndexView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 基于日期的更新列表
|
// 基于日期的更新列表
|
||||||
|
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
LazyVStack {
|
LazyVStack {
|
||||||
ForEach(showUpdateDramas.indices, id: \.self) { index in
|
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
|
Color.clear.onChange(of: geometry.frame(in: .global).minY) {_, offset in
|
||||||
let frame = geometry.frame(in: .global)
|
let frame = geometry.frame(in: .global)
|
||||||
let screenBounds = UIScreen.main.bounds
|
let screenBounds = UIScreen.main.bounds
|
||||||
/*
|
|
||||||
if frame.intersects(screenBounds) {
|
if screenBounds.height - frame.minY > 50 && !isLoading {
|
||||||
print("call me here11")
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
if screenBounds.height - frame.minY > 50 {
|
|
||||||
print("call me here")
|
print("call me here")
|
||||||
Task {
|
Task {
|
||||||
await self.loadMoreUpdateDramas()
|
await self.loadMoreUpdateDramas()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user