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() .scrollTargetLayout()
ProgressView() if indexModel.hasMoreOldest {
ProgressView()
} else {
Text("没有了")
.autoDismiss(after: 1.5)
}
} }
.frame(width: 370) .frame(width: 370)
.coordinateSpace(name: "indexScrollView") .coordinateSpace(name: "indexScrollView")

View File

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