Calculate offset without loader-cell (IOS-141)
Sorry, Stephen Fry! It wasn't anything personal
This commit is contained in:
parent
5c71b7ef45
commit
a2990d54e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue