From d2c9b38e5ee601f26ebd99f37be2e0dec0839067 Mon Sep 17 00:00:00 2001 From: haowenwu Date: Tue, 11 Jun 2024 14:51:23 +0800 Subject: [PATCH] fix: wrong isLoading state --- BilibiliLive/Component/Feed/FeedCollectionViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BilibiliLive/Component/Feed/FeedCollectionViewController.swift b/BilibiliLive/Component/Feed/FeedCollectionViewController.swift index 9856bd4..a21319f 100644 --- a/BilibiliLive/Component/Feed/FeedCollectionViewController.swift +++ b/BilibiliLive/Component/Feed/FeedCollectionViewController.swift @@ -88,12 +88,12 @@ class FeedCollectionViewController: UIViewController { } func appendData(displayData: [any DisplayData]) { + isLoading = false _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 if _displayData.count < 12 { isLoading = true