This commit is contained in:
anlicheng 2025-07-28 18:34:52 +08:00
parent 7094938c07
commit d3cf14fc08
2 changed files with 13 additions and 1 deletions

View File

@ -96,7 +96,12 @@ struct IndexMainView: View {
}
.scrollTargetLayout()
ProgressView()
if indexModel.hasMoreOldest {
ProgressView()
} else {
Text("没有了")
.autoDismiss(after: 1.5)
}
}
.frame(width: 370)
.coordinateSpace(name: "indexScrollView")

View File

@ -85,6 +85,8 @@ final class IndexModel {
// group_name
var fixedDramaGroup: UpdateDramaGroup? = nil
var hasMoreOldest: Bool = true
@ObservationIgnored
private var isLoaded = false
@ -247,7 +249,12 @@ final class IndexModel {
self.dramaGroupElements = transformUpdateDramaGroups(groups: self.updateDramaGroups)
displayDramaGroups(self.updateDramaGroups, label: "after")
self.hasMoreOldest = true
} else {
self.hasMoreOldest = false
}
} else {
self.hasMoreOldest = false
}
self.isMoreLoading = false