Skip to content

Commit

Permalink
fix: infinite load more when displayData not reach 12 counts
Browse files Browse the repository at this point in the history
  • Loading branch information
haowenwu committed Jun 11, 2024
1 parent 5875f08 commit 4e8d53d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class FeedCollectionViewController: UIViewController {
_displayData.append(contentsOf: displayData.map { AnyDispplayData(data: $0) }.filter({ !_displayData.contains($0) }))
if displayData.count < pageSize - 5 || displayData.count == 0 {
finished = true
return
}
isLoading = false

Expand Down

0 comments on commit 4e8d53d

Please sign in to comment.