Wording on bottom button

This commit is contained in:
Jackson Harper
2023-12-26 10:01:01 +08:00
parent 3d87ef671b
commit 701d6a6be1

View File

@ -1047,10 +1047,10 @@ struct BottomView: View {
await viewModel.loadMore(dataService: dataService)
}
}, label: {
if let totalCount = viewModel.fetcher.totalCount {
Text("Fetch more.")
if let totalCount = viewModel.fetcher.totalCount, viewModel.fetcher.items.count >= totalCount {
Text("Check for more")
} else {
Text("Refresh")
Text("Fetch more")
}
})
.foregroundColor(Color.blue)