Calculate offset without loader-cell (IOS-141)

Sorry, Stephen Fry! It wasn't anything personal
This commit is contained in:
Nathan Mattes 2023-09-20 20:09:42 +02:00
parent 5c71b7ef45
commit a2990d54e2
1 changed files with 7 additions and 1 deletions

View File

@ -78,7 +78,13 @@ extension SearchResultViewModel.State {
return
}
offset = viewModel.items.count
offset = viewModel.items.filter({ item in
if case .bottomLoader(_) = item {
return false
} else {
return true
}
}).count
// not set offset for all case
// and assert other cases the items are all the same type elements